mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
PCE: Fixed noise period when frequency register is set to 0x1F
Fixes noise issues in some games (Cyber Cross, Eternal City, Victory Run, etc.)
This commit is contained in:
parent
e24eecd1d2
commit
816e77e8a5
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ void PcePsgChannel::SetOutputOffset(uint8_t offset)
|
|||
uint32_t PcePsgChannel::GetNoisePeriod()
|
||||
{
|
||||
if(_state.NoiseFrequency == 0x1F) {
|
||||
return (0x1F + 1) * 64;
|
||||
return 32;
|
||||
} else {
|
||||
return ((~_state.NoiseFrequency) & 0x1F) * 64;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue