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_coreaudio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'audio/out/ao_coreaudio.c') diff --git a/audio/out/ao_coreaudio.c b/audio/out/ao_coreaudio.c index 0c7f769e72..590549bd1a 100644 --- a/audio/out/ao_coreaudio.c +++ b/audio/out/ao_coreaudio.c @@ -156,6 +156,8 @@ static int init(struct ao *ao) OSStatus err = ca_select_device(ao, ao->device, &p->device); CHECK_CA_ERROR("failed to select device"); + ao->detected_device = talloc_asprintf(ao, "%d", p->device); + if (!init_chmap(ao)) goto coreaudio_error; -- cgit v1.2.3