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
9ab78662
Commit
9ab78662
authored
Jan 22, 2021
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor changes to resource_manager_advanced example.
parent
f194a8bb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
research/_examples/resource_manager_advanced.c
research/_examples/resource_manager_advanced.c
+3
-3
No files found.
research/_examples/resource_manager_advanced.c
View file @
9ab78662
...
...
@@ -139,6 +139,8 @@ void data_callback(ma_device* pDevice, void* pOutput, const void* pInput, ma_uin
MA_ASSERT
(
pDevice
->
playback
.
format
==
ma_format_f32
);
(
void
)
pInput
;
/* Unused. */
/*
If the device was configured with noPreSilencedOutputBuffer then you would need to silence the
buffer here, or make sure the first data source to be mixed is copied rather than mixed.
...
...
@@ -149,8 +151,6 @@ void data_callback(ma_device* pDevice, void* pOutput, const void* pInput, ma_uin
for
(
iDataSource
=
0
;
iDataSource
<
g_dataSourceCount
;
iDataSource
+=
1
)
{
ma_data_source_read_pcm_frames_and_mix_f32
(
&
g_dataSources
[
iDataSource
],
(
float
*
)
pOutput
,
frameCount
,
NULL
,
MA_TRUE
,
/* volume = */
1
);
}
(
void
)
pInput
;
}
static
ma_thread_result
MA_THREADCALL
custom_job_thread
(
void
*
pUserData
)
...
...
@@ -184,7 +184,7 @@ static ma_thread_result MA_THREADCALL custom_job_thread(void* pUserData)
/*
Terminate if we got a quit message. You don't need to terminate like this, but's a bit more robust. You can
just use a global variable or something similar if it's easier for you particular situation. The quit job
just use a global variable or something similar if it's easier for you
r
particular situation. The quit job
remains in the queue and will continue to be returned by future calls to ma_resource_manager_next_job(). The
reason for this is to give every job thread visibility to the quit job so they have a chance to exit.
...
...
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