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:
parent
b95f9885a4
commit
9dee51851f
39 changed files with 57 additions and 46 deletions
|
|
@ -292,7 +292,7 @@ void DivPlatformPCMDAC::tick(bool sysTick) {
|
|||
double off=1.0;
|
||||
if (!chan[0].useWave && chan[0].sample>=0 && chan[0].sample<parent->song.sampleLen) {
|
||||
DivSample* s=parent->getSample(chan[0].sample);
|
||||
off=(s->centerRate>=1)?((double)s->centerRate/8363.0):1.0;
|
||||
off=(s->centerRate>=1)?((double)s->centerRate/parent->getCenterRate()):1.0;
|
||||
}
|
||||
chan[0].freq=off*parent->calcFreq(chan[0].baseFreq,chan[0].pitch,chan[0].fixedArp?chan[0].baseNoteOverride:chan[0].arpOff,chan[0].fixedArp,false,2,chan[0].pitch2,chipClock,CHIP_FREQBASE);
|
||||
if (chan[0].freq>16777215) chan[0].freq=16777215;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue