I've got trouble finding the good GpClockSpeedChange values, and there are 2 problems:
1st, the sound pitch can change depending on which values you use
2nd, glitches appear on the right of the screen when using certain freq settings
I think it would be a good idea to share some values. So I'll start here:
GpClockSpeedChange(67500000, 0x25002, 1) => sound ok, no glitches
framelength = 38
GpClockSpeedChange(99000000, 0x3a002, 2) => sound pitch modified, glitches
framelength = 56
GpClockSpeedChange(110000000, 0x2f011, 2) => sound ok, glitches
framelength = 62
GpClockSpeedChange(132000000, 0x3a011, 2) => sound ok, no glitches
framelength = 76
GpClockSpeedChange(156000000, 0x2c001, 2) => sound ok, no glitches
framelength = 89
The framelenght values are in Ticks, and kinda show how much processing power you get.
1st, the sound pitch can change depending on which values you use
2nd, glitches appear on the right of the screen when using certain freq settings
I think it would be a good idea to share some values. So I'll start here:
GpClockSpeedChange(67500000, 0x25002, 1) => sound ok, no glitches
framelength = 38
GpClockSpeedChange(99000000, 0x3a002, 2) => sound pitch modified, glitches
framelength = 56
GpClockSpeedChange(110000000, 0x2f011, 2) => sound ok, glitches
framelength = 62
GpClockSpeedChange(132000000, 0x3a011, 2) => sound ok, no glitches
framelength = 76
GpClockSpeedChange(156000000, 0x2c001, 2) => sound ok, no glitches
framelength = 89
The framelenght values are in Ticks, and kinda show how much processing power you get.