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
328f84c2
Commit
328f84c2
authored
May 29, 2021
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some comments.
parent
2257ce7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
research/miniaudio_engine.c
research/miniaudio_engine.c
+1
-1
research/miniaudio_engine.h
research/miniaudio_engine.h
+2
-2
No files found.
research/miniaudio_engine.c
View file @
328f84c2
...
...
@@ -79,7 +79,7 @@ int main(int argc, char** argv)
loadNotification
.
cb
.
onSignal
=
on_sound_loaded
;
loadNotification
.
pSound
=
&
sound
;
result
=
ma_sound_init_from_file
(
&
engine
,
argv
[
1
],
MA_DATA_SOURCE_FLAG_DECODE
/*| MA_DATA_SOURCE_FLAG_ASYNC
| MA_DATA_SOURCE_FLAG_STREAM*/
,
&
group
,
&
baseSound
);
result
=
ma_sound_init_from_file
(
&
engine
,
argv
[
1
],
MA_DATA_SOURCE_FLAG_DECODE
|
MA_DATA_SOURCE_FLAG_ASYNC
/*
| MA_DATA_SOURCE_FLAG_STREAM*/
,
&
group
,
&
baseSound
);
if
(
result
!=
MA_SUCCESS
)
{
printf
(
"Failed to load sound: %s
\n
"
,
argv
[
1
]);
ma_engine_uninit
(
&
engine
);
...
...
research/miniaudio_engine.h
View file @
328f84c2
...
...
@@ -923,7 +923,7 @@ struct ma_node_output_bus
MA_ATOMIC
ma_uint16
refCount
;
/* Reference count for some thread-safety when detaching. */
MA_ATOMIC
ma_bool8
isAttached
;
/* This is used to prevent iteration of nodes that are in the middle of being detached. Used for thread safety. */
MA_ATOMIC
ma_spinlock
lock
;
/* Unfortunate lock, but significantly simplifies the implementation. Required for thread-safe attaching and detaching. */
MA_ATOMIC
float
volume
;
/* Linear
0..1
*/
MA_ATOMIC
float
volume
;
/* Linear
.
*/
MA_ATOMIC
ma_node_output_bus
*
pNext
;
/* If null, it's the tail node or detached. */
MA_ATOMIC
ma_node_output_bus
*
pPrev
;
/* If null, it's the head node or detached. */
MA_ATOMIC
ma_node
*
pInputNode
;
/* The node that this output bus is attached to. Required for detaching. */
...
...
@@ -6801,7 +6801,7 @@ static ma_result ma_resource_manager_data_buffer_init_nolock(ma_resource_manager
}
else
{
/*
Slow path. The data for this buffer has not yet been initialized. The first thing to do is
allocate the new data buffer and insert it into the BST.
allocate the new data buffer
node
and insert it into the BST.
Note that there's a possiblity that we're calling this function because we're wanting to
initialize a data buffer from an existing data buffer rather than by a file name. In this
...
...
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