From a3be14683a33211e3e07094246bb3342fc789763 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 2 Feb 2015 23:01:11 +0100 Subject: command: add property returning detected audio device This can be useful to adjust some other audio related properties at runtime depending on the audio device being used. --- audio/out/ao.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'audio/out/ao.c') diff --git a/audio/out/ao.c b/audio/out/ao.c index f77ae4c24a..dbdcf272cb 100644 --- a/audio/out/ao.c +++ b/audio/out/ao.c @@ -440,6 +440,11 @@ bool ao_untimed(struct ao *ao) return ao->untimed; } +const char *ao_get_detected_device(struct ao *ao) +{ + return ao->detected_device; +} + struct ao_device_list *ao_get_device_list(struct mpv_global *global) { struct ao_device_list *list = talloc_zero(NULL, struct ao_device_list); -- cgit v1.2.3