summaryrefslogtreecommitdiffstats
path: root/audio/out/ao.h
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2015-02-14 12:43:55 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2015-02-14 12:51:15 +0100
commit70802d519f9130696959346aa413f7faeeed7621 (patch)
tree130639c7880b1495b2b43d31480705733989c899 /audio/out/ao.h
parent9aaec7cffb2fb1543d4c3cabb55165f606c0b87d (diff)
downloadmpv-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 'audio/out/ao.h')
-rw-r--r--audio/out/ao.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao.h b/audio/out/ao.h
index 7b85ec80ba..3a028bb402 100644
--- a/audio/out/ao.h
+++ b/audio/out/ao.h
@@ -80,7 +80,6 @@ void ao_uninit(struct ao *ao);
void ao_get_format(struct ao *ao, struct mp_audio *format);
const char *ao_get_name(struct ao *ao);
const char *ao_get_description(struct ao *ao);
-const char *ao_get_detected_device(struct ao *ao);
bool ao_untimed(struct ao *ao);
int ao_play(struct ao *ao, void **data, int samples, int flags);
int ao_control(struct ao *ao, enum aocontrol cmd, void *arg);
@@ -100,6 +99,7 @@ struct ao_hotplug *ao_hotplug_create(struct mpv_global *global,
struct input_ctx *input_ctx);
void ao_hotplug_destroy(struct ao_hotplug *hp);
bool ao_hotplug_check_update(struct ao_hotplug *hp);
+const char *ao_hotplug_get_detected_device(struct ao_hotplug *hp);
struct ao_device_list *ao_hotplug_get_device_list(struct ao_hotplug *hp);
void ao_print_devices(struct mpv_global *global, struct mp_log *log);