Skip to content

Commit

Permalink
[twonder] maybe fixed segfault by wrapping around delay time
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Weidauer committed Dec 18, 2024
1 parent 3413e51 commit 096b373
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/twonder/delayline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ void DelayLine::get(DelayCoeff& coeff0, DelayCoeff& coeff1, float* samples,
factor += factorsDelta;

if (readPosF >= lineLengthF) { readPosF -= lineLength; }
if (readPosF <= -1.0) { readPosF += lineLength;}
}
}

Expand Down

0 comments on commit 096b373

Please sign in to comment.