mpv/audio/out
wm4 f3c498c7f1 ao: avoid unnecessary wakeups
If ao_add_events() is used, but all events flags are already set, then
we don't need to wakeup the core again.

Also, make the underrun message "exact" by avoiding the race condition
mentioned in the comment.

Avoiding redundant wakeups is not really worth the trouble, and it's
actually just a bonus in the change making the ao_underrun_event()
function return whether a new underrun was set, which is needed by the
following commit.
2020-02-13 01:28:14 +01:00
..
ao.c ao: avoid unnecessary wakeups 2020-02-13 01:28:14 +01:00
ao.h ao: avoid unnecessary wakeups 2020-02-13 01:28:14 +01:00
ao_alsa.c ao_alsa: use AO underrun reporting 2019-10-11 20:02:23 +02:00
ao_audiotrack.c audio: add ao_audiotrack for android 2019-11-19 12:10:26 -08:00
ao_audiounit.m ao/audiounit: include AVAudioSession buffer in latency calc 2019-04-05 10:29:44 +07:00
ao_coreaudio.c audio/out: rip out old unused app/softvolume reporting 2019-10-11 21:05:11 +02:00
ao_coreaudio_chmap.c
ao_coreaudio_chmap.h
ao_coreaudio_exclusive.c
ao_coreaudio_properties.c
ao_coreaudio_properties.h
ao_coreaudio_utils.c ao/audiounit: improve a/v sync 2019-04-05 10:29:44 +07:00
ao_coreaudio_utils.h ao/audiounit: improve a/v sync 2019-04-05 10:29:44 +07:00
ao_jack.c ao_jack: only auto-connect to audio ports 2018-09-26 22:44:48 +03:00
ao_lavc.c Replace uses of FFMIN/MAX with MPMIN/MAX 2019-10-31 11:24:20 +01:00
ao_null.c ao_null: add --ao-null-format option for debugging 2018-01-30 03:10:27 -08:00
ao_openal.c audio/out: rip out old unused app/softvolume reporting 2019-10-11 21:05:11 +02:00
ao_opensles.c ao_opensles: fix delayed audio 2019-09-02 00:38:05 +03:00
ao_oss.c audio/out: rip out old unused app/softvolume reporting 2019-10-11 21:05:11 +02:00
ao_pcm.c ao_pcm: drop AF_FORMAT_S24 usage 2017-07-07 17:56:18 +02:00
ao_pulse.c audio/out: rip out old unused app/softvolume reporting 2019-10-11 21:05:11 +02:00
ao_rsound.c ao_rsound: allow setting the host 2017-08-21 15:46:00 +02:00
ao_sdl.c audio/out/pull, ao_sdl: implement new underrun reporting 2019-10-11 20:02:23 +02:00
ao_sndio.c audio/out: rip out old unused app/softvolume reporting 2019-10-11 21:05:11 +02:00
ao_wasapi.c audio/out: rip out old unused app/softvolume reporting 2019-10-11 21:05:11 +02:00
ao_wasapi.h ao_wasapi: reorganize wasapi.h 2017-08-07 14:33:03 -07:00
ao_wasapi_changenotify.c
ao_wasapi_utils.c ao_wasapi_utils: remove invalid audio session icon path (fixes #7269) 2020-01-31 23:08:47 +11:00
internal.h ao: avoid unnecessary wakeups 2020-02-13 01:28:14 +01:00
pull.c audio/out/pull, ao_sdl: implement new underrun reporting 2019-10-11 20:02:23 +02:00
push.c encode: get rid of the output packet queue 2018-05-03 01:08:44 +03:00