From 721071a5ecd7d95c55b65749825dd69fff835211 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Sun, 28 Jul 2013 00:40:08 -0400 Subject: ao_coreaudio: fix compilation on OS X 10.7 Reverts one of the changes from 18777ecf. `kAudioObjectPropertyScopeOutput` was introduced in the 10.8 SDK while `kAudioDevicePropertyScopeOutput` was moved to `AudioHardwareDeprecated.h`. Since the deprecation is silent for now (no warnings), just use the old constant. Either way, they both evaluate to 'outp', and in the 10.8 SDK the deprecated constant is defined in terms of the non-deprecated one. Fixes #155 --- audio/out/ao_coreaudio_properties.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/out/ao_coreaudio_properties.h') diff --git a/audio/out/ao_coreaudio_properties.h b/audio/out/ao_coreaudio_properties.h index 88ba889c29..ee7f83e6b7 100644 --- a/audio/out/ao_coreaudio_properties.h +++ b/audio/out/ao_coreaudio_properties.h @@ -25,7 +25,7 @@ #define ca_sel AudioObjectPropertySelector #define ca_scope AudioObjectPropertyScope #define CA_GLOBAL kAudioObjectPropertyScopeGlobal -#define CA_OUTPUT kAudioObjectPropertyScopeOutput +#define CA_OUTPUT kAudioDevicePropertyScopeOutput OSStatus ca_get(AudioObjectID id, ca_scope scope, ca_sel selector, uint32_t size, void *data); -- cgit v1.2.3