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
9c761921
Commit
9c761921
authored
Mar 09, 2021
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try fixing an infinite loop.
parent
61f5d4e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
research/miniaudio_engine.h
research/miniaudio_engine.h
+7
-2
No files found.
research/miniaudio_engine.h
View file @
9c761921
...
@@ -9968,7 +9968,7 @@ static void ma_engine_node_process_pcm_frames__general(ma_engine_node* pEngineNo
...
@@ -9968,7 +9968,7 @@ static void ma_engine_node_process_pcm_frames__general(ma_engine_node* pEngineNo
isPanningEnabled
=
pEngineNode
->
panner
.
pan
!=
0
&&
channelsOut
!=
1
;
isPanningEnabled
=
pEngineNode
->
panner
.
pan
!=
0
&&
channelsOut
!=
1
;
/* Keep going while we've still got data available for processing. */
/* Keep going while we've still got data available for processing. */
while
(
totalFramesProcessed
In
<
frameCountIn
&&
totalFramesProcessed
Out
<
frameCountOut
)
{
while
(
totalFramesProcessedOut
<
frameCountOut
)
{
/*
/*
We need to process in a specific order. We always do resampling first because it's likely
We need to process in a specific order. We always do resampling first because it's likely
we're going to be increasing the channel count after spatialization. Also, I want to do
we're going to be increasing the channel count after spatialization. Also, I want to do
...
@@ -10082,9 +10082,14 @@ static void ma_engine_node_process_pcm_frames__general(ma_engine_node* pEngineNo
...
@@ -10082,9 +10082,14 @@ static void ma_engine_node_process_pcm_frames__general(ma_engine_node* pEngineNo
ma_panner_process_pcm_frames
(
&
pEngineNode
->
panner
,
pRunningFramesOut
,
pRunningFramesOut
,
framesJustProcessedOut
);
/* In-place processing. */
ma_panner_process_pcm_frames
(
&
pEngineNode
->
panner
,
pRunningFramesOut
,
pRunningFramesOut
,
framesJustProcessedOut
);
/* In-place processing. */
}
}
/* We're done. */
/* We're done
for this chunk
. */
totalFramesProcessedIn
+=
framesJustProcessedIn
;
totalFramesProcessedIn
+=
framesJustProcessedIn
;
totalFramesProcessedOut
+=
framesJustProcessedOut
;
totalFramesProcessedOut
+=
framesJustProcessedOut
;
/* If we didn't process any output frames this iteration it means we've either run out of input data, or run out of room in the output buffer. */
if
(
framesJustProcessedOut
==
0
)
{
break
;
}
}
}
/* At this point we're done processing. */
/* At this point we're done processing. */
...
...
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