mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 20:27:23 +00: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:
parent
fac2d9097e
commit
721071a5ec
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user