code cleanup
This commit is contained in:
parent
b83cc98eb1
commit
69363b4db9
|
|
@ -226,15 +226,11 @@ void DivPlatformVERA::tick(bool sysTick) {
|
||||||
double off=65536.0;
|
double off=65536.0;
|
||||||
if (chan[16].pcm.sample>=0 && chan[16].pcm.sample<parent->song.sampleLen) {
|
if (chan[16].pcm.sample>=0 && chan[16].pcm.sample<parent->song.sampleLen) {
|
||||||
DivSample* s=parent->getSample(chan[16].pcm.sample);
|
DivSample* s=parent->getSample(chan[16].pcm.sample);
|
||||||
if (s->centerRate<1) {
|
if (s->centerRate>=1) {
|
||||||
off=65536.0;
|
|
||||||
} else {
|
|
||||||
off=65536.0*(s->centerRate/8363.0);
|
off=65536.0*(s->centerRate/8363.0);
|
||||||
lastCenterRate=s->centerRate;
|
lastCenterRate=s->centerRate;
|
||||||
}
|
}
|
||||||
} else if (lastCenterRate<1) {
|
} else if (lastCenterRate>=1) {
|
||||||
off=65536.0;
|
|
||||||
} else {
|
|
||||||
off=65536.0*(lastCenterRate/8363.0);
|
off=65536.0*(lastCenterRate/8363.0);
|
||||||
}
|
}
|
||||||
chan[16].freq=parent->calcFreq(chan[16].baseFreq,chan[16].pitch,chan[16].fixedArp?chan[16].baseNoteOverride:chan[16].arpOff,chan[16].fixedArp,false,8,chan[16].pitch2,chipClock,off);
|
chan[16].freq=parent->calcFreq(chan[16].baseFreq,chan[16].pitch,chan[16].fixedArp?chan[16].baseNoteOverride:chan[16].arpOff,chan[16].fixedArp,false,8,chan[16].pitch2,chipClock,off);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue