Skip to content

Commit

Permalink
PCE: Fixed (?) frequency for noise
Browse files Browse the repository at this point in the history
Matches what PCEHawk and Mednafen sound like
  • Loading branch information
SourMesen committed Nov 1, 2023
1 parent 6515d4d commit 9492741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/PCE/PcePsgChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 9492741

Please sign in to comment.