mirror of
https://github.com/mpv-player/mpv
synced 2024-12-13 10:26:00 +00:00
478d39c574
It is now the AO's responsibility to handle period size alignment. The ao->period_size alignment field is unused as of the recent audio refactor commit. Remove it. It turns out that ao_alsa shows extremely inefficient behavior as a consequence of the removal of period size aligned writes in the mentioned refactor commit. This is because it could get into a state where it repeatedly wrote single samples (as small as 1 sample), and starved the rest of the player as a consequence. Too bad. Explicitly align the size in ao_alsa. Other AOs, which need this, should do the same. One reason why it broke so badly with ao_alsa was that it retried the write() even if all reported space could be written. So stop doing that too. Retry the write only if we somehow wrote less. I'm not sure about ao_pulse. |
||
---|---|---|
.. | ||
ao_alsa.c | ||
ao_audiotrack.c | ||
ao_audiounit.m | ||
ao_coreaudio_chmap.c | ||
ao_coreaudio_chmap.h | ||
ao_coreaudio_exclusive.c | ||
ao_coreaudio_properties.c | ||
ao_coreaudio_properties.h | ||
ao_coreaudio_utils.c | ||
ao_coreaudio_utils.h | ||
ao_coreaudio.c | ||
ao_jack.c | ||
ao_lavc.c | ||
ao_null.c | ||
ao_openal.c | ||
ao_opensles.c | ||
ao_pcm.c | ||
ao_pulse.c | ||
ao_sdl.c | ||
ao_wasapi_changenotify.c | ||
ao_wasapi_utils.c | ||
ao_wasapi.c | ||
ao_wasapi.h | ||
ao.c | ||
ao.h | ||
buffer.c | ||
internal.h |