Merge branch 'brr'

This commit is contained in:
tildearrow 2022-12-05 19:17:05 -05:00
commit b94493dcc0
2 changed files with 3 additions and 1 deletions

View file

@ -126,6 +126,8 @@ void brrEncodeBlock(const short* buf, unsigned char* out, unsigned char range, u
break;
}
if (nextDec>32767) nextDec=32767;
if (nextDec<-32768) nextDec=-32768;
nextDec&=0x7fff;
if (nextDec&0x4000) nextDec|=0xffff8000;

View file

@ -498,6 +498,7 @@ void DivPlatformSMS::setFlags(const DivConfig& flags) {
easyStartingPeriod=13;
break;
}
CHECK_CUSTOM_CLOCK;
resetPhase=!flags.getBool("noPhaseReset",false);
easyNoise=!flags.getBool("noEasyNoise",false);
divider=16;
@ -568,7 +569,6 @@ void DivPlatformSMS::setFlags(const DivConfig& flags) {
stereo=false;
break;
}
CHECK_CUSTOM_CLOCK;
rate=chipClock/divider;
for (int i=0; i<4; i++) {
oscBuf[i]->rate=rate;