Skip to content

Commit 400a960

Browse files
committed
[snes9x2005 non-plus] Fix audio pitch issues (FF6)
1 parent f4a5a7a commit 400a960

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
depend
88
[Tt]humbs.db
99
expsfc.*
10-
EXPSFC/
10+
EXPSFC/
11+
*.so

source/apu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void S9xSetAPUDSP(uint8_t byte)
243243
case APU_P_LOW + 0x50:
244244
case APU_P_LOW + 0x60:
245245
case APU_P_LOW + 0x70:
246-
S9xSetSoundHertz(reg >> 4, ((((int16_t) byte + ((int16_t) APU.DSP [reg + 1] << 8)) & FREQUENCY_MASK) * 32000) >> 12);
246+
S9xSetSoundHertz(reg >> 4, (((int16_t) byte + ((int16_t) APU.DSP [reg + 1] << 8)) & FREQUENCY_MASK) * 8);
247247
break;
248248
case APU_P_HIGH + 0x00:
249249
case APU_P_HIGH + 0x10:

0 commit comments

Comments
 (0)