GUI: make playing needles in sample editor work

currently only for YM2612 but I will implement more soon
This commit is contained in:
tildearrow 2023-03-19 03:12:08 -05:00
parent 2e9bc14459
commit f80a2b8864
7 changed files with 87 additions and 1 deletions

View file

@ -1209,6 +1209,16 @@ DivMacroInt* DivPlatformGenesis::getChanMacroInt(int ch) {
return &chan[ch].std;
}
DivSamplePos DivPlatformGenesis::getSamplePos(int ch) {
if (ch<5) return DivSamplePos();
if (ch>5 && !softPCM) return DivSamplePos();
return DivSamplePos(
chan[ch].dacSample,
chan[ch].dacPos,
chan[ch].dacRate
);
}
DivDispatchOscBuffer* DivPlatformGenesis::getOscBuffer(int ch) {
return oscBuf[ch];
}