PCE: Fixed (?) frequency for noise

Matches what PCEHawk and Mednafen sound like
This commit is contained in:
Sour 2023-11-01 19:28:26 +09:00
parent 6515d4d41c
commit 94927419d6

View file

@ -17,9 +17,9 @@ void PcePsgChannel::Init(uint8_t index, PcePsg* psg)
uint32_t PcePsgChannel::GetNoisePeriod()
{
if(_state.NoiseFrequency == 0x1F) {
return (0x1F + 1) * 128;
return (0x1F + 1) * 64;
} else {
return ((~_state.NoiseFrequency) & 0x1F) * 128;
return ((~_state.NoiseFrequency) & 0x1F) * 64;
}
}