ZX beeper: per-"channel" osc

there's only one
This commit is contained in:
tildearrow 2022-06-20 18:48:10 -05:00
parent b697694c0d
commit fd61e0e9f8
1 changed files with 3 additions and 1 deletions

View File

@ -59,6 +59,7 @@ void DivPlatformZXBeeper::acquire(short* bufL, short* bufR, size_t start, size_t
}
o=sampleOut;
bufL[h]=o?16384:0;
oscBuf[0]->data[oscBuf[0]->needle++]=o?16384:-16384;
continue;
}
@ -76,6 +77,7 @@ void DivPlatformZXBeeper::acquire(short* bufL, short* bufR, size_t start, size_t
if (++curChan>=6) curChan=0;
bufL[h]=o?16384:0;
oscBuf[0]->data[oscBuf[0]->needle++]=o?16384:-16384;
}
}
@ -256,7 +258,7 @@ DivMacroInt* DivPlatformZXBeeper::getChanMacroInt(int ch) {
}
DivDispatchOscBuffer* DivPlatformZXBeeper::getOscBuffer(int ch) {
return oscBuf[ch];
return (ch<1)?oscBuf[ch]:NULL;
}
unsigned char* DivPlatformZXBeeper::getRegisterPool() {