OPN: proper vol map for SSG/ADPCM/CSM/DAC parts

This commit is contained in:
tildearrow 2023-12-17 14:41:25 -05:00
parent 3742a8e2ea
commit 8d30ac4d3b
13 changed files with 53 additions and 0 deletions

View file

@ -767,6 +767,12 @@ DivDispatchOscBuffer* DivPlatformYM2608Ext::getOscBuffer(int ch) {
return NULL;
}
int DivPlatformYM2608Ext::mapVelocity(int ch, float vel) {
if (ch>=extChanOffs+4) return DivPlatformOPN::mapVelocity(ch-3,vel);
if (ch>=extChanOffs) return DivPlatformOPN::mapVelocity(extChanOffs,vel);
return DivPlatformOPN::mapVelocity(ch,vel);
}
void DivPlatformYM2608Ext::reset() {
DivPlatformYM2608::reset();