Skip to content

Commit

Permalink
Don't try to crossfade a negative length
Browse files Browse the repository at this point in the history
This a the backport of the fix from #11717
  • Loading branch information
daschuer committed Jul 9, 2023
1 parent 931bb6a commit 3ec60a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/readaheadmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ SINT ReadAheadManager::getNextSamples(double dRate, CSAMPLE* pOutput,
}
}

if (crossFadeSamples) {
if (crossFadeSamples > 0) {
const auto readResult = m_pReader->read(loop_read_position +
(in_reverse ? crossFadeStart : -crossFadeStart),
crossFadeSamples,
Expand Down

0 comments on commit 3ec60a7

Please sign in to comment.