Skip to content

Commit

Permalink
Merge pull request #13733 from daschuer/gh13727
Browse files Browse the repository at this point in the history
Metronome: Fix noise when pausing track in in the middle of the click sound.
  • Loading branch information
Swiftb0y authored Oct 8, 2024
2 parents f873f54 + 0cf80e4 commit c38753d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/effects/backends/builtin/metronomeeffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ void MetronomeEffect::processChannel(
nextClickStart = bufferEnd - beatToBufferEnd;
}
} else {
// no transport, nothing to do.
// no transport, continue until the current click has been fully played
if (gs->m_framesSinceClickStart < clickSize) {
gs->m_framesSinceClickStart += engineParameters.framesPerBuffer();
}
return;
}
} else {
Expand Down

0 comments on commit c38753d

Please sign in to comment.