mpv/audio
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
..
decode
filter
out audio: add device change notification for hotplugging 2015-02-12 17:17:41 +01:00
audio.c
audio.h
audio_buffer.c
audio_buffer.h
chmap.c chmap_sel: add multichannel fallback heuristic 2014-12-29 17:56:53 +01:00
chmap.h
chmap_sel.c
chmap_sel.h
fmt-conversion.c
fmt-conversion.h
format.c
format.h
mixer.c mixer: don't show softvol neutral marker on OSD if not using softvol 2014-11-27 10:11:55 +01:00
mixer.h