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
7d84ec56
Commit
7d84ec56
authored
Nov 10, 2021
by
iarwain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compilation warnings on iOS with MRR (Manual Retain Release)
parent
4610482a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
miniaudio.h
miniaudio.h
+9
-2
No files found.
miniaudio.h
View file @
7d84ec56
...
...
@@ -28574,6 +28574,13 @@ References
#if defined(TARGET_OS_WATCH) && TARGET_OS_WATCH == 1
#define MA_APPLE_WATCH
#endif
#if __has_feature(objc_arc)
#define MA_BRIDGE_TRANSFER __bridge_transfer
#define MA_BRIDGE_RETAINED __bridge_retained
#else
#define MA_BRIDGE_TRANSFER
#define MA_BRIDGE_RETAINED
#endif
#else
#define MA_APPLE_DESKTOP
#endif
...
...
@@ -30752,7 +30759,7 @@ static ma_result ma_device_uninit__coreaudio(ma_device* pDevice)
#endif
#if defined(MA_APPLE_MOBILE)
if (pDevice->coreaudio.pRouteChangeHandler != NULL) {
ma_router_change_handler* pRouteChangeHandler = (
__bridge_transfer
ma_router_change_handler*)pDevice->coreaudio.pRouteChangeHandler;
ma_router_change_handler* pRouteChangeHandler = (
MA_BRIDGE_TRANSFER
ma_router_change_handler*)pDevice->coreaudio.pRouteChangeHandler;
[pRouteChangeHandler remove_handler];
}
#endif
...
...
@@ -31426,7 +31433,7 @@ static ma_result ma_device_init__coreaudio(ma_device* pDevice, const ma_device_c
differently on non-Desktop Apple platforms.
*/
#if defined(MA_APPLE_MOBILE)
pDevice->coreaudio.pRouteChangeHandler = (
__bridge_retained
void*)[[ma_router_change_handler alloc] init:pDevice];
pDevice->coreaudio.pRouteChangeHandler = (
MA_BRIDGE_RETAINED
void*)[[ma_router_change_handler alloc] init:pDevice];
#endif
return MA_SUCCESS;
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