OPNA/B: fix ADPCM-A/RSS muting with LLE core
This commit is contained in:
parent
2e9621073e
commit
402a658454
|
@ -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
|
||||
|
|
|
@ -618,7 +618,11 @@ 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;
|
||||
oscBuf[7+i]->putSample(h,rssOut[i]);
|
||||
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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue