From de4f9977528e454c44f980a4364ecd18d3219c62 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 3 Feb 2015 00:28:54 +0100 Subject: ao_coreaudio: use device UID instead of ID for selection Previously we let the user use the audio device ID, but this is not persistent and can change when plugging in new devices. That of course made it quite worthless for storing it as a user setting for GUIs, or for user scripts. In theory getting the kAudioDevicePropertyDeviceUID can fail but it doesn't on any of my devices, so I'm leaving the error reporting quite high and see if someone complains. --- audio/out/ao_coreaudio_utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'audio/out/ao_coreaudio_utils.h') diff --git a/audio/out/ao_coreaudio_utils.h b/audio/out/ao_coreaudio_utils.h index 0ef84c3afa..17c60b93be 100644 --- a/audio/out/ao_coreaudio_utils.h +++ b/audio/out/ao_coreaudio_utils.h @@ -28,6 +28,9 @@ #define CA_CFSTR_ENCODING kCFStringEncodingASCII +CFStringRef cfstr_from_cstr(char *str); +char *cfstr_get_cstr(CFStringRef cfstr); + char *fourcc_repr(void *talloc_ctx, uint32_t code); bool check_ca_st(struct ao *ao, int level, OSStatus code, const char *message); -- cgit v1.2.3