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

@ -415,6 +415,16 @@ DivMacroInt* DivPlatformLynx::getChanMacroInt(int ch) {
return &chan[ch].std;
}
DivSamplePos DivPlatformLynx::getSamplePos(int ch) {
if (ch>=4) return DivSamplePos();
if (!chan[ch].pcm) return DivSamplePos();
return DivSamplePos(
chan[ch].sample,
chan[ch].samplePos,
chan[ch].sampleFreq
);
}
DivDispatchOscBuffer* DivPlatformLynx::getOscBuffer(int ch) {
return oscBuf[ch];
}