Commit 5b90f7b7 authored by cubeleo's avatar cubeleo Committed by David Reid

CoreAudio: Improved OS version check.

parent ffe5f2cd
...@@ -31050,7 +31050,8 @@ static ma_result ma_get_channel_map_from_AudioChannelLayout(AudioChannelLayout* ...@@ -31050,7 +31050,8 @@ static ma_result ma_get_channel_map_from_AudioChannelLayout(AudioChannelLayout*
return MA_SUCCESS; return MA_SUCCESS;
} }
#if defined(MAC_OS_VERSION_12_0) || defined(__IPHONE_15_0) #if (defined(MAC_OS_VERSION_12_0) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_VERSION_12_0) || \
(defined(__IPHONE_15_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_15_0)
#define AUDIO_OBJECT_PROPERTY_ELEMENT kAudioObjectPropertyElementMain #define AUDIO_OBJECT_PROPERTY_ELEMENT kAudioObjectPropertyElementMain
#else #else
/* kAudioObjectPropertyElementMaster is deprecated. */ /* kAudioObjectPropertyElementMaster is deprecated. */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment