mpv/audio
wm4 037c37519b audio/out: require AO drivers to report period size and correct buffer
Before this change, AOs could have internal alignment, and play() would
not consume the trailing data if the size passed to it is not aligned.
Change this to require AOs to report their alignment (via period_size),
and make sure to always send aligned data.

The buffer reported by get_space() now always has to be correct and
reliable. If play() does not consume all data provided (which is bounded
by get_space()), an error is printed.

This is preparation for potential further AO changes.

I casually checked alsa/lavc/null/pcm, the other AOs might or might not
work.
2017-06-25 15:57:43 +02:00
..
decode
filter
out audio/out: require AO drivers to report period size and correct buffer 2017-06-25 15:57:43 +02:00
audio.c
audio.h
audio_buffer.c
audio_buffer.h
chmap.c
chmap.h
chmap_sel.c
chmap_sel.h
fmt-conversion.c
fmt-conversion.h
format.c
format.h