implement getGain for a couple chips

the ones with log volume
This commit is contained in:
tildearrow 2024-07-22 19:08:39 -05:00
parent b108156954
commit b2223ccd0f
17 changed files with 65 additions and 1 deletions

View file

@ -2330,6 +2330,13 @@ int DivEngine::mapVelocity(int ch, float vel) {
return disCont[dispatchOfChan[ch]].dispatch->mapVelocity(dispatchChanOfChan[ch],vel);
}
float DivEngine::getGain(int ch, int vol) {
if (ch<0) return 0;
if (ch>=chans) return 0;
if (disCont[dispatchOfChan[ch]].dispatch==NULL) return 0;
return disCont[dispatchOfChan[ch]].dispatch->getGain(dispatchChanOfChan[ch],vol);
}
unsigned char DivEngine::getOrder() {
return prevOrder;
}