Skip to content

Commit

Permalink
Attempt to fix stutters when overdubbing
Browse files Browse the repository at this point in the history
  • Loading branch information
crsib committed Nov 13, 2023
1 parent ae99292 commit 7f6e43d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/lib-audio-io/AudioIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2708,6 +2708,9 @@ bool AudioIoCallback::FillOutputBuffers(
len = mPlaybackBuffers[iBuffer]->Discard(toGet);
// keep going here.
// we may still need to issue a paComplete.

// Keep tempBufs initialized to avoid NaNs and Infs
memset(tempBufs[c], 0, framesPerBuffer * sizeof(float));
}
else {
len = mPlaybackBuffers[iBuffer]
Expand Down

0 comments on commit 7f6e43d

Please sign in to comment.