OPNA/B: fix ADPCM-A/RSS muting with LLE core

This commit is contained in:
tildearrow 2025-03-23 04:36:20 -05:00
parent 2e9621073e
commit 402a658454
3 changed files with 15 additions and 1 deletions

View file

@ -686,6 +686,11 @@ void DivPlatformYM2608::acquire_lle(short** buf, size_t len) {
for (int i=0; i<6; i++) {
if (rssOut[i]<-32768) rssOut[i]=-32768;
if (rssOut[i]>32767) rssOut[i]=32767;
if (isMuted[adpcmAChanOffs+i]) {
oscBuf[9+i]->putSample(h,0);
} else {
oscBuf[9+i]->putSample(h,rssOut[i]);
}
oscBuf[9+i]->putSample(h,rssOut[i]);
}
// ADPCM

View file

@ -618,8 +618,12 @@ void DivPlatformYM2610::acquire_lle(short** buf, size_t len) {
for (int i=0; i<6; i++) {
if (rssOut[i]<-32768) rssOut[i]=-32768;
if (rssOut[i]>32767) rssOut[i]=32767;
if (isMuted[adpcmAChanOffs+i]) {
oscBuf[7+i]->putSample(h,0);
} else {
oscBuf[7+i]->putSample(h,rssOut[i]);
}
}
// ADPCM
oscBuf[13]->putSample(h,fm_lle.ac_ad_output);

View file

@ -686,6 +686,11 @@ void DivPlatformYM2610B::acquire_lle(short** buf, size_t len) {
for (int i=0; i<6; i++) {
if (rssOut[i]<-32768) rssOut[i]=-32768;
if (rssOut[i]>32767) rssOut[i]=32767;
if (isMuted[adpcmAChanOffs+i]) {
oscBuf[9+i]->putSample(h,0);
} else {
oscBuf[9+i]->putSample(h,rssOut[i]);
}
oscBuf[9+i]->putSample(h,rssOut[i]);
}
// ADPCM