diff options
author | wm4 <wm4@nowhere> | 2020-06-03 15:22:18 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-06-03 15:22:18 +0200 |
commit | baa7b5c8dd35365a8a62aa39c84394e5315b79e0 (patch) | |
tree | d842d639e4190ee8a0636f0986d0a05b5e285a11 /options/options.h | |
parent | 416d3f2c0071f22125a4e9e09475610961c0bec7 (diff) | |
download | mpv-baa7b5c8dd35365a8a62aa39c84394e5315b79e0.tar.bz2 mpv-baa7b5c8dd35365a8a62aa39c84394e5315b79e0.tar.xz |
audio: adjust wait duration
I feel like this makes slightly more sense. At least it doesn't include
the potentially arbitrary constant latency that is generally included in
the delay value. Also, the buffer status doesn't matter - either we've
filled the entire buffer (then we can wait this long), or there's not
enough data anyway (then the core will wake up the thread if new data is
available).
But ultimately, we have to guess, unless the AO does notify us with
ao_wakeup_playthread().
Draining may now wait for no reason up to 1/4th of the total buffer
time. Shouldn't be a disimprovement in practice.
Diffstat (limited to 'options/options.h')
0 files changed, 0 insertions, 0 deletions