diff options
author | wm4 <wm4@nowhere> | 2019-10-11 19:25:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-10-11 19:25:45 +0200 |
commit | c84ec021287d72d122071d5c211f9bfbeb13a3fe (patch) | |
tree | 563612b5ecef18b9d26889445cbd53914e184b62 /common/encode_lavc.c | |
parent | 52f3dee16a81ca4ed4d3a5a12e5f4fbf74cc3ddb (diff) | |
download | mpv-c84ec021287d72d122071d5c211f9bfbeb13a3fe.tar.bz2 mpv-c84ec021287d72d122071d5c211f9bfbeb13a3fe.tar.xz |
ao: add API for underrun reporting
AOs can now call ao_underrun_event() (in any context) if an underrun has
happened. It will print a message.
This will be used in the following commits. But for now, audio.c only
clears the underrun bit, so that subsequent underruns still print the
warning message.
Since the underrun flag will be used in fragile ways by the playback
state machine, there is the "reports_underruns" field that signals
strong support for underrun reporting. (Otherwise, underrun events will
not be used by it.)
Diffstat (limited to 'common/encode_lavc.c')
0 files changed, 0 insertions, 0 deletions