prepare for proper center rate

the correct rate is 8372Hz rather than 8363Hz
sadly this will require a compat flag so I am not making this change
effective until 0.7

issue #2347
This commit is contained in:
tildearrow 2025-02-06 02:14:21 -05:00
parent b95f9885a4
commit 9dee51851f
39 changed files with 57 additions and 46 deletions

View file

@ -490,7 +490,7 @@ void DivPlatformES5506::tick(bool sysTick) {
if (center<1) {
off=1.0;
} else {
off=(double)center/8363.0;
off=(double)center/parent->getCenterRate();
}
if (ins->amiga.useNoteMap) {
//chan[i].pcm.note=next;
@ -654,7 +654,7 @@ void DivPlatformES5506::tick(bool sysTick) {
if (center<1) {
off=1.0;
} else {
off=(double)center/8363.0;
off=(double)center/parent->getCenterRate();
}
chan[i].pcm.loopStart=(chan[i].pcm.start+(s->loopStart<<11))&0xfffff800;
chan[i].pcm.loopEnd=(chan[i].pcm.start+((s->loopEnd)<<11))&0xffffff80;