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
f400ccec
Commit
f400ccec
authored
Nov 28, 2020
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update c89atomic and fix some warnings.
parent
2d63e414
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
129 additions
and
33 deletions
+129
-33
miniaudio.h
miniaudio.h
+127
-31
research/miniaudio_engine.h
research/miniaudio_engine.h
+2
-2
No files found.
miniaudio.h
View file @
f400ccec
This diff is collapsed.
Click to expand it.
research/miniaudio_engine.h
View file @
f400ccec
...
@@ -5305,7 +5305,7 @@ static ma_result ma_resource_manager_data_buffer_uninit_nolock(ma_resource_manag
...
@@ -5305,7 +5305,7 @@ static ma_result ma_resource_manager_data_buffer_uninit_nolock(ma_resource_manag
The data buffer has been removed from the BST so now we need to delete the underyling data. This needs to be done in a separate thread. We don't
The data buffer has been removed from the BST so now we need to delete the underyling data. This needs to be done in a separate thread. We don't
want to delete anything if the data is owned by the application. Also, just to be safe, we set the result to MA_UNAVAILABLE.
want to delete anything if the data is owned by the application. Also, just to be safe, we set the result to MA_UNAVAILABLE.
*/
*/
c89atomic_exchange_32
(
&
pDataBuffer
->
pNode
->
result
,
MA_UNAVAILABLE
);
c89atomic_exchange_
i
32
(
&
pDataBuffer
->
pNode
->
result
,
MA_UNAVAILABLE
);
if
(
asyncUninit
==
MA_FALSE
)
{
if
(
asyncUninit
==
MA_FALSE
)
{
/* The data buffer can be deleted synchronously. */
/* The data buffer can be deleted synchronously. */
...
@@ -5854,7 +5854,7 @@ MA_API ma_result ma_resource_manager_data_stream_uninit(ma_resource_manager_data
...
@@ -5854,7 +5854,7 @@ MA_API ma_result ma_resource_manager_data_stream_uninit(ma_resource_manager_data
}
}
/* The first thing to do is set the result to unavailable. This will prevent future page decoding. */
/* The first thing to do is set the result to unavailable. This will prevent future page decoding. */
c89atomic_exchange_32
(
&
pDataStream
->
result
,
MA_UNAVAILABLE
);
c89atomic_exchange_
i
32
(
&
pDataStream
->
result
,
MA_UNAVAILABLE
);
/*
/*
We need to post a job to ensure we're not in the middle or decoding or anything. Because the object is owned by the caller, we'll need
We need to post a job to ensure we're not in the middle or decoding or anything. Because the object is owned by the caller, we'll need
...
...
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