You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function does not get stuck in an infinite loop and the application does not lock up.
Actual behavior
In mixBus_internal, writesamples and outofs can, in rare cases, both be 0; causing the resampling while loop to never finish execution.
Steps to reproduce the problem
I was repeatedly playing a sound over a bus at a regular interval with its rate being adjusted to that of a hailstone sequence.
In some cases it would happen almost immediately, in other cases I had to wait 30 seconds or longer.
I suspect it happens when the playback rate of a sound is near 0.0.
Workaround
I've temporarily just stuck a break in the while loop when writesamples is 0.
// Call resampler to generate the samples, once per channelif (writesamples)
{
...
}
else
{
// NOTE: Breaking here because this thing can get stuck in an infinite loop.break;
}
This creates an audible noise whenever the issue occurs but it at least stops my game engine from getting stuck.
SoLoud version, operating system, backend used, any other potentially useful information
Custom fork, branched from main, with the last merged in change being 4d72336a8855f3f421f95ec75cda9062da3fe7eb
From the looks of it, the code in the master branch has not changed in this area since then.
The text was updated successfully, but these errors were encountered:
Expected behavior
The function does not get stuck in an infinite loop and the application does not lock up.
Actual behavior
In
mixBus_internal
,writesamples
andoutofs
can, in rare cases, both be0
; causing the resampling while loop to never finish execution.Steps to reproduce the problem
I was repeatedly playing a sound over a bus at a regular interval with its rate being adjusted to that of a hailstone sequence.
In some cases it would happen almost immediately, in other cases I had to wait 30 seconds or longer.
I suspect it happens when the playback rate of a sound is near
0.0
.Workaround
I've temporarily just stuck a break in the while loop when
writesamples
is0
.This creates an audible noise whenever the issue occurs but it at least stops my game engine from getting stuck.
SoLoud version, operating system, backend used, any other potentially useful information
Custom fork, branched from main, with the last merged in change being 4d72336a8855f3f421f95ec75cda9062da3fe7eb
From the looks of it, the code in the master branch has not changed in this area since then.
The text was updated successfully, but these errors were encountered: