mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 13:05:11 +00:00
ZX beeper: per-"channel" osc
there's only one
This commit is contained in:
parent
b697694c0d
commit
fd61e0e9f8
1 changed files with 3 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue