diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2015-02-14 12:43:55 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2015-02-14 12:51:15 +0100 |
commit | 70802d519f9130696959346aa413f7faeeed7621 (patch) | |
tree | 130639c7880b1495b2b43d31480705733989c899 /player/command.h | |
parent | 9aaec7cffb2fb1543d4c3cabb55165f606c0b87d (diff) | |
download | mpv-70802d519f9130696959346aa413f7faeeed7621.tar.bz2 mpv-70802d519f9130696959346aa413f7faeeed7621.tar.xz |
ao_coreaudio: add support for hotplug notifications
This commit adds notifications for hot plugging of devices. It also extends
the old behaviour of the `audio-out-detected-device` property which is now
backed by the hotplugging code. This allows clients to be notified when the
actual audio output device changes.
Maybe hotplugging should be supported for ao_coreaudio_exclusive too, but it's
device selection code is a bit fragile.
Diffstat (limited to 'player/command.h')
-rw-r--r-- | player/command.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/player/command.h b/player/command.h index 96a58b1f80..945d686786 100644 --- a/player/command.h +++ b/player/command.h @@ -48,6 +48,7 @@ enum { MP_EVENT_WIN_RESIZE, MP_EVENT_WIN_STATE, MP_EVENT_AUDIO_DEVICES, + MP_EVENT_DETECTED_AUDIO_DEVICE, }; bool mp_hook_test_completion(struct MPContext *mpctx, char *type); |