VRC6: fix crash

This commit is contained in:
tildearrow 2023-01-12 23:14:57 -05:00
parent bf0c58aedc
commit 0c36c0633b

View file

@ -81,7 +81,7 @@ void DivPlatformVRC6::acquire(short** buf, size_t len) {
int sample=vrc6.out()<<9; // scale to 16 bit
if (sample>32767) sample=32767;
if (sample<-32768) sample=-32768;
buf[0][i]=buf[1][i]=sample;
buf[0][i]=sample;
// Oscilloscope buffer part
if (++writeOscBuf>=32) {