mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-26 22:43:01 +00:00
VRC6: fix crash
This commit is contained in:
parent
bf0c58aedc
commit
0c36c0633b
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ void DivPlatformVRC6::acquire(short** buf, size_t len) {
|
||||||
int sample=vrc6.out()<<9; // scale to 16 bit
|
int sample=vrc6.out()<<9; // scale to 16 bit
|
||||||
if (sample>32767) sample=32767;
|
if (sample>32767) sample=32767;
|
||||||
if (sample<-32768) sample=-32768;
|
if (sample<-32768) sample=-32768;
|
||||||
buf[0][i]=buf[1][i]=sample;
|
buf[0][i]=sample;
|
||||||
|
|
||||||
// Oscilloscope buffer part
|
// Oscilloscope buffer part
|
||||||
if (++writeOscBuf>=32) {
|
if (++writeOscBuf>=32) {
|
||||||
|
|
Loading…
Reference in a new issue