Skip to content

Commit

Permalink
NES: Fixed audio bias in mapper 19
Browse files Browse the repository at this point in the history
I think the value is meant to be signed but I'm not really sure which sounds better.
  • Loading branch information
ducalex committed Feb 12, 2024
1 parent 9c71871 commit 9bdf9f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions retro-core/components/nofrendo/mappers/map019.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static int sound_process(void)
int value = map019->ram[(index >> 1) & 0x3F];
if (index & 1)
value >>= 4;
sample += ((value & 0xF) << 2) * chan->volume;
sample += ((value & 0xF) - 8) * chan->volume;
chan->phase += SOUND_STEP;
}

Expand All @@ -113,7 +113,7 @@ static int sound_process(void)
if (!active)
return 0;

return sample / active;
return sample << 1; // / active;
}

static void sound_reset(void)
Expand Down

0 comments on commit 9bdf9f6

Please sign in to comment.