summaryrefslogtreecommitdiffstats
path: root/audio/format.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-10 10:34:41 +0100
committerwm4 <wm4@nowhere>2015-03-10 10:37:05 +0100
commit2f5e31cf47d8b340989395d84d966d1d1390fe3f (patch)
tree62cfb1dc8ccf7f00fcc54b3f5659aab9e86e95d1 /audio/format.h
parentfa75a7b6d7af4b6c68329e1acdaced38a71d0dd8 (diff)
downloadmpv-2f5e31cf47d8b340989395d84d966d1d1390fe3f.tar.bz2
mpv-2f5e31cf47d8b340989395d84d966d1d1390fe3f.tar.xz
ao_coreaudio_exclusive: port to pull API, fix latency calculations
Instead of maintaining a private ring buffer, use the generic support for audio APIs with pull callbacks (internally called AO pull API). This also fixes latency calculations: instead of just returning the ringbuffer status, the audio playback state is calculated better and includes interpolation. The main reason this wasn't done earlier was mid-stream format switching. The pull API can now handle it (in a way) by destroying and recreating the AO. This is a bit brutal, but quite simple. It's untested in this new AO, though. Some details might not be right, like how ot restores the old format when reloading.
Diffstat (limited to 'audio/format.h')
0 files changed, 0 insertions, 0 deletions