Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
1964144a
Commit
1964144a
authored
Nov 17, 2021
by
David Reid
Committed by
GitHub
Nov 17, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #373 from orx/dev-0.11
Fixed compiling for iOS 11.x and earlier
parents
eccbbdd0
8e092f37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
miniaudio.h
miniaudio.h
+5
-1
No files found.
miniaudio.h
View file @
1964144a
...
@@ -31556,7 +31556,7 @@ static ma_result ma_context_uninit__coreaudio(ma_context* pContext)
...
@@ -31556,7 +31556,7 @@ static ma_result ma_context_uninit__coreaudio(ma_context* pContext)
return MA_SUCCESS;
return MA_SUCCESS;
}
}
#if defined(MA_APPLE_MOBILE)
#if defined(MA_APPLE_MOBILE)
&& defined(__IPHONE_12_0)
static AVAudioSessionCategory ma_to_AVAudioSessionCategory(ma_ios_session_category category)
static AVAudioSessionCategory ma_to_AVAudioSessionCategory(ma_ios_session_category category)
{
{
/* The "default" and "none" categories are treated different and should not be used as an input into this function. */
/* The "default" and "none" categories are treated different and should not be used as an input into this function. */
...
@@ -31613,9 +31613,13 @@ static ma_result ma_context_init__coreaudio(ma_context* pContext, const ma_conte
...
@@ -31613,9 +31613,13 @@ static ma_result ma_context_init__coreaudio(ma_context* pContext, const ma_conte
}
}
} else {
} else {
if (pConfig->coreaudio.sessionCategory != ma_ios_session_category_none) {
if (pConfig->coreaudio.sessionCategory != ma_ios_session_category_none) {
#if defined(__IPHONE_12_0)
if (![pAudioSession setCategory: ma_to_AVAudioSessionCategory(pConfig->coreaudio.sessionCategory) withOptions:options error:nil]) {
if (![pAudioSession setCategory: ma_to_AVAudioSessionCategory(pConfig->coreaudio.sessionCategory) withOptions:options error:nil]) {
return MA_INVALID_OPERATION; /* Failed to set session category. */
return MA_INVALID_OPERATION; /* Failed to set session category. */
}
}
#else
return MA_INVALID_OPERATION; /* AVAudioSession.Category was introduced in iOS 12.0. */
#endif
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment