Commit db1de8e2 authored by David Reid's avatar David Reid

iOS: Don't fail on older versions when a session category is specified.

parent 1964144a
...@@ -31618,7 +31618,8 @@ static ma_result ma_context_init__coreaudio(ma_context* pContext, const ma_conte ...@@ -31618,7 +31618,8 @@ static ma_result ma_context_init__coreaudio(ma_context* pContext, const ma_conte
return MA_INVALID_OPERATION; /* Failed to set session category. */ return MA_INVALID_OPERATION; /* Failed to set session category. */
} }
#else #else
return MA_INVALID_OPERATION; /* AVAudioSession.Category was introduced in iOS 12.0. */ /* Ignore the session category on version 11 and older, but post a warning. */
ma_log_postf(ma_context_get_log(pContext), MA_LOG_LEVEL_WARNING, "Session category only supported in iOS 12 and newer.");
#endif #endif
} }
} }
...@@ -87998,6 +87999,7 @@ REVISION HISTORY ...@@ -87998,6 +87999,7 @@ REVISION HISTORY
v0.10.43 - TBD v0.10.43 - TBD
- ALSA: Fix use of uninitialized variables - ALSA: Fix use of uninitialized variables
- ALSA: Fix enumeration of devices that support both playback and capture. - ALSA: Fix enumeration of devices that support both playback and capture.
- Core Audio: Don't fail on older versions of iOS when a session category is specified.
- WebAudio: Fix errors in strict mode. - WebAudio: Fix errors in strict mode.
v0.10.42 - 2021-08-22 v0.10.42 - 2021-08-22
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