implement getSamplePos() on some chips

Amiga, AY, Lynx, PCE, PCM DAC and VRC6
This commit is contained in:
tildearrow 2023-03-19 03:56:13 -05:00
parent f80a2b8864
commit 6cd24a8008
15 changed files with 75 additions and 0 deletions

View file

@ -696,6 +696,15 @@ DivMacroInt* DivPlatformAY8930::getChanMacroInt(int ch) {
return &chan[ch].std;
}
DivSamplePos DivPlatformAY8930::getSamplePos(int ch) {
if (ch>=3) return DivSamplePos();
return DivSamplePos(
chan[ch].dac.sample,
chan[ch].dac.pos,
chan[ch].dac.rate
);
}
DivDispatchOscBuffer* DivPlatformAY8930::getOscBuffer(int ch) {
return oscBuf[ch];
}