mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 01:04:02 +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;
|
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. */
|
||||||
|
|||||||
Reference in New Issue
Block a user