SoundUnit: fix echo resolution being ignored

This commit is contained in:
tildearrow 2022-10-02 02:03:18 -05:00
parent a14bd4c8d4
commit 8b9b452fbd

View file

@ -518,7 +518,7 @@ void DivPlatformSoundUnit::setFlags(const DivConfig& flags) {
bool echoOn=flags.getBool("echo",false); bool echoOn=flags.getBool("echo",false);
initIlCtrl=3|(echoOn?4:0); initIlCtrl=3|(echoOn?4:0);
initIlSize=((flags.getInt("echoDelay",0))&63)|(echoOn?0x40:0)|(flags.getBool("swapEcho",false)?0x80:0); initIlSize=((flags.getInt("echoDelay",0))&63)|(echoOn?0x40:0)|(flags.getBool("swapEcho",false)?0x80:0);
initFil1=flags.getInt("echoFeedback",0); initFil1=flags.getInt("echoFeedback",0)|(flags.getInt("echoResolution",0)<<4);
initEchoVol=flags.getInt("echoVol",0); initEchoVol=flags.getInt("echoVol",0);
sampleMemSize=flags.getInt("sampleMemSize",0); sampleMemSize=flags.getInt("sampleMemSize",0);