1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 09:32:40 +00:00
mpv/TOOLS
wm4 f061befb33 audio: add device change notification for hotplugging
Not very important for the command line player; but GUI applications
will want to know about this.

This only adds the internal API; support for specific audio outputs
comes later.

This reuses the ao struct as context for the hotplug event listener,
similar to how the "old" device listing API did. This is probably a bit
unclean and confusing. One argument got reusing it is that otherwise
rewriting parts of ao_pulse would be required (because the PulseAudio
API requires so damn much boilerplate). Another is that --ao-defaults is
applied to the hotplug dummy ao struct, which automatically applies such
defaults even to the hotplug context.

Notification works through the property observation mechanism in the
client API. The notification chain is a bit complicated: the AO notifies
the player, which in turn notifies the clients, which in turn will
actually retrieve the device list. (It still has the advantage that it's
slightly cleaner, since the AO stuff doesn't need to know about client
API issues.)

The weird handling of atomic flags in ao.c is because we still don't
require real atomics from the compiler. Otherwise we'd just use atomic
bitwise operations.
2015-02-12 17:17:41 +01:00
..
lib/Parse demux_mkv: read CueRelativePosition/CueDuration elements 2014-11-05 21:52:07 +01:00
lua audio: add device change notification for hotplugging 2015-02-12 17:17:41 +01:00
osxbundle/mpv.app/Contents osxbundle: fix cascading config loading 2014-12-26 09:18:20 +01:00
vf_dlopen video: remove internal QP passing 2014-12-03 23:01:20 +01:00
dylib-unhell.py osxbundle: don't try to package Python 2015-02-02 16:11:11 +01:00
file2string.pl Port several python scripts to Perl 2012-11-08 00:28:59 +01:00
gen-x11-icon.sh TOOLS: shellcheck: quote variable expansions 2014-09-16 17:32:33 +02:00
idet.sh TOOLS/idet.sh: Adjust for changes in FFmpeg. 2014-11-22 08:13:26 +01:00
matroska.pl demux_mkv: fix compiler warnings 2013-11-04 23:49:22 +01:00
mpv_identify.sh TOOLS/mpv_identify.sh: remove pointless escape 2014-09-24 02:08:49 +02:00
osxbundle.py osxbundle: don't use sed but pure python 2014-12-13 11:20:29 +01:00
stats-conv.py TOOLS/stats-conv: change unit of X-axis to seconds 2015-02-01 18:26:24 +01:00
umpv umpv: update comment for the new FIFO location 2014-11-15 20:20:06 +01:00
uncrustify.cfg uncrustify: add some instructions 2013-05-12 21:24:55 +02:00
youtube-dl_mpv.sh youtube-dl_mpv.sh: unquote ${video_url} 2015-01-23 17:45:03 +01:00
zsh.pl TOOLS/zsh.pl: complete options based on types 2015-01-06 06:57:52 +01:00