diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2013-07-28 00:40:08 -0400 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-07-28 09:48:49 +0200 |
commit | 721071a5ecd7d95c55b65749825dd69fff835211 (patch) | |
tree | a1c48bec3799adf566a701bbc8c11f1694debac9 /audio/out/ao_coreaudio_properties.h | |
parent | fac2d9097ef9e022e50917ac3d8a20a6748d69b8 (diff) | |
download | mpv-721071a5ecd7d95c55b65749825dd69fff835211.tar.bz2 mpv-721071a5ecd7d95c55b65749825dd69fff835211.tar.xz |
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
Diffstat (limited to 'audio/out/ao_coreaudio_properties.h')
-rw-r--r-- | audio/out/ao_coreaudio_properties.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |