implement phase reset macro on supported systems
This commit is contained in:
parent
c76e719371
commit
c743a9e96a
16 changed files with 89 additions and 7 deletions
|
|
@ -195,6 +195,11 @@ void DivPlatformAmiga::tick() {
|
|||
if (chan[i].useWave && chan[i].active) {
|
||||
chan[i].ws.tick();
|
||||
}
|
||||
if (chan[i].std.phaseReset.had) {
|
||||
if (chan[i].std.phaseReset.val==1) {
|
||||
chan[i].audPos=0;
|
||||
}
|
||||
}
|
||||
if (chan[i].freqChanged || chan[i].keyOn || chan[i].keyOff) {
|
||||
//DivInstrument* ins=parent->getIns(chan[i].ins);
|
||||
chan[i].freq=parent->calcFreq(chan[i].baseFreq,chan[i].pitch,true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue