summaryrefslogtreecommitdiffstats
path: root/audio/out/ao.c
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2015-02-02 23:01:11 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2015-02-03 00:40:02 +0100
commita3be14683a33211e3e07094246bb3342fc789763 (patch)
tree1db9298908cffa8906f076b4eec39858e49acb35 /audio/out/ao.c
parentdd287a3276153ec4e43567ed0eddba7d595168cf (diff)
downloadmpv-a3be14683a33211e3e07094246bb3342fc789763.tar.bz2
mpv-a3be14683a33211e3e07094246bb3342fc789763.tar.xz
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.
Diffstat (limited to 'audio/out/ao.c')
-rw-r--r--audio/out/ao.c5
1 files changed, 5 insertions, 0 deletions
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);