mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
CoreAudio: Improved OS version check.
This commit is contained in:
+2
-1
@@ -31050,7 +31050,8 @@ static ma_result ma_get_channel_map_from_AudioChannelLayout(AudioChannelLayout*
|
||||
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
|
||||
#else
|
||||
/* kAudioObjectPropertyElementMaster is deprecated. */
|
||||
|
||||
Reference in New Issue
Block a user