add special waves

This commit is contained in:
LTVA1 2024-07-31 13:26:20 +03:00
parent 49773c9f47
commit 0d4d035c1f
3 changed files with 42 additions and 17 deletions

View file

@ -134,8 +134,9 @@ void DivPlatformSID3::tick(bool sysTick)
if (chan[i].keyOn)
{
rWrite(i*SID3_REGISTERS_PER_CHANNEL,SID3_CHAN_ENABLE_GATE);
rWrite(6 + i*SID3_REGISTERS_PER_CHANNEL,SID3_WAVE_PULSE);
rWrite(i*SID3_REGISTERS_PER_CHANNEL,SID3_CHAN_ENABLE_GATE); //gate on
rWrite(6 + i*SID3_REGISTERS_PER_CHANNEL,SID3_WAVE_SPECIAL); //waveform
rWrite(9 + i*SID3_REGISTERS_PER_CHANNEL,10); //special wave
chan[i].duty = 0x1000;
updateDuty(i);