We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b1ba68 commit a0dc007Copy full SHA for a0dc007
1 file changed
source/Kaixo/SpectralRotator/Processing/Rotator.cpp
@@ -102,6 +102,7 @@ namespace Kaixo::Processing {
102
if (usingOriginal && buffer.sampleRate != originalBuffer.sampleRate) {
103
return resampler.generate(buffer);
104
} else {
105
+ if (index >= buffer.size()) return Stereo{ 0, 0 };
106
auto i = reverseInput ? buffer.size() - index - 1 : index;
107
return Stereo{ buffer[i].l, buffer[i].r };
108
}
0 commit comments