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
bdbfc324
Commit
bdbfc324
authored
Apr 26, 2019
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos.
parent
2e74c898
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/simple_mixing.c
examples/simple_mixing.c
+2
-2
No files found.
examples/simple_mixing.c
View file @
bdbfc324
...
@@ -43,7 +43,7 @@ ma_uint32 read_and_mix_pcm_frames_f32(ma_decoder* pDecoder, float* pOutputF32, m
...
@@ -43,7 +43,7 @@ ma_uint32 read_and_mix_pcm_frames_f32(ma_decoder* pDecoder, float* pOutputF32, m
{
{
/*
/*
The way mixing works is that we just read into a temporary buffer, then take the contents of that buffer and mix it with the
The way mixing works is that we just read into a temporary buffer, then take the contents of that buffer and mix it with the
contents of the output buffer by simply adding the sample together. You could also clip the samples to -1..+1, but I'm not
contents of the output buffer by simply adding the sample
s
together. You could also clip the samples to -1..+1, but I'm not
doing that in this example.
doing that in this example.
*/
*/
float
temp
[
4096
];
float
temp
[
4096
];
...
@@ -95,7 +95,7 @@ void data_callback(ma_device* pDevice, void* pOutput, const void* pInput, ma_uin
...
@@ -95,7 +95,7 @@ void data_callback(ma_device* pDevice, void* pOutput, const void* pInput, ma_uin
/*
/*
If at the end all of our decoders are at the end we need to stop. We cannot stop the device in the callback. Instead we need to
If at the end all of our decoders are at the end we need to stop. We cannot stop the device in the callback. Instead we need to
signal an event to indicate that it's stopped. The main thread will be waiting on the event, after which it will stop the
event
.
signal an event to indicate that it's stopped. The main thread will be waiting on the event, after which it will stop the
device
.
*/
*/
if
(
are_all_decoders_at_end
())
{
if
(
are_all_decoders_at_end
())
{
ma_event_signal
(
&
g_stopEvent
);
ma_event_signal
(
&
g_stopEvent
);
...
...
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