diff options
author | wm4 <wm4@nowhere> | 2014-09-15 22:25:01 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-15 23:08:19 +0200 |
commit | 7c2fb859ab10fa375a38179fd49daac36ab111c8 (patch) | |
tree | 8fb801b25a5795fcf0e2fa805ba4f2753dcfeb64 /audio/mixer.c | |
parent | d5b8b5b901fb71030b29f5d41884b53deac9c838 (diff) | |
download | mpv-7c2fb859ab10fa375a38179fd49daac36ab111c8.tar.bz2 mpv-7c2fb859ab10fa375a38179fd49daac36ab111c8.tar.xz |
ao_oss: don't break playback when device can't be reopened
Apparently NetBSD users want/need this (see issue #1080).
In order not to break playback, we need at least to emulate get_delay().
We do this approximately by using the system clock.
Also, always close the audio device on reset. Reopen it on play only. If
we can't reopen it, don't retry until after the next time reset or
resume is called, to avoid spam and unexpectedly "stealing" back the
audio device.
Also do something about framestepping causing audio desync.
Diffstat (limited to 'audio/mixer.c')
0 files changed, 0 insertions, 0 deletions