Skip to content

ao/jack: set device_buffer to JACK buffer size#7824

Merged
sfan5 merged 1 commit intompv-player:masterfrom
CounterPillow:jack-device-buffer
Aug 20, 2023
Merged

ao/jack: set device_buffer to JACK buffer size#7824
sfan5 merged 1 commit intompv-player:masterfrom
CounterPillow:jack-device-buffer

Conversation

@CounterPillow
Copy link
Copy Markdown
Contributor

This change sets the device_buffer member of the ao struct for the JACK ao to whatever value we read during init.

While JACK allows changing the audio buffer size on-the-fly (you can do this for example through DBus), having it somehow reconfigure the entire audio buffer logic of mpv that depends on device_buffer in some way when that happens only leads to audio dropout and weird code. device_buffer's role is mostly for prebuffer from what I understand, which means that simply setting it to its current value in the init function is fine.

This change sets the device_buffer member of the ao struct for
the JACK ao to whatever value we read during init.

While JACK allows changing the audio buffer size on-the-fly
(you can do this for example through DBus), having it somehow
reconfigure the entire audio buffer logic of mpv that depends
on device_buffer in some way when that happens only leads to
audio dropout and weird code. device_buffer's role is mostly for
prebuffer from what I understand, which means that simply setting
it to its current value in the init function is fine.
@ghost
Copy link
Copy Markdown

ghost commented Jun 10, 2020

Seems fine, though not sure if it semantically makes sense.

@sfan5 sfan5 merged commit 9ba8b92 into mpv-player:master Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants