0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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
This commit is contained in:
Dmitry Kalinkin 2013-07-28 00:40:08 -04:00 committed by Stefano Pigozzi
parent fac2d9097e
commit 721071a5ec

View File

@ -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);