We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73dc8e5 commit fca02afCopy full SHA for fca02af
1 file changed
_common/AudioProcessor/audio_processor.cpp
@@ -356,9 +356,9 @@ bool MoondustAudioProcessor::runChunk(bool dry)
356
const auto &source = m_in_file->getSpec();
357
size_t sample_in = (SDL_AUDIO_BITSIZE(source.m_sample_format) / 8) * source.m_channels;
358
359
- if(source.m_loop_end > 0 && m_stat_read + amount > (source.m_loop_end * sample_in))
+ if(source.m_loop_end > 0 && m_stat_read + amount > (source.m_loop_end * sample_in) + sample_in)
360
{
361
- amount = m_stat_read + amount - (source.m_loop_end * sample_in);
+ amount = (source.m_loop_end * sample_in) - m_stat_read + sample_in;
362
m_cuttedAtLoop = true;
363
}
364
0 commit comments