Prepare for split volume scaling macro to 'log volume only' macro and 'log volume if compatibility flag set' macro
This commit is contained in:
parent
e105cd588e
commit
90ed617cf6
19 changed files with 111 additions and 110 deletions
|
|
@ -125,7 +125,7 @@ void DivPlatformSMS::tick(bool sysTick) {
|
|||
if (i==3) CHIP_DIVIDER=noiseDivider;
|
||||
chan[i].std.next();
|
||||
if (chan[i].std.vol.had) {
|
||||
chan[i].outVol=VOL_SCALE_LOG(chan[i].std.vol.val,chan[i].vol,15);
|
||||
chan[i].outVol=VOL_SCALE_LOG_BROKEN(chan[i].std.vol.val,chan[i].vol,15);
|
||||
if (chan[i].outVol<0) chan[i].outVol=0;
|
||||
// old formula
|
||||
// ((chan[i].vol&15)*MIN(15,chan[i].std.vol.val))>>4;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue