diff options
author | hizzlekizzle | 2018-12-18 10:49:40 -0600 |
---|---|---|
committer | GitHub | 2018-12-18 10:49:40 -0600 |
commit | 09e85e3e49feb9c0f7b95c5f53ca1a72989a94f2 (patch) | |
tree | 187b18b6210f6c7d11f7400692763eae28ad8731 | |
parent | f4a5a7afa4fe054845ba741be8a3878a8022c4eb (diff) | |
parent | 400a96024c5ce333b1a6b862b13159cfaaf0498b (diff) | |
download | snesemu-09e85e3e49feb9c0f7b95c5f53ca1a72989a94f2.tar.gz snesemu-09e85e3e49feb9c0f7b95c5f53ca1a72989a94f2.tar.bz2 snesemu-09e85e3e49feb9c0f7b95c5f53ca1a72989a94f2.zip |
Merge pull request #65 from jdgleaver/pitch-fix
[snes9x2005 non-plus] Fix audio pitch issues (FF6)
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | source/apu.c | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -7,4 +7,5 @@ depend [Tt]humbs.db expsfc.* -EXPSFC/
\ No newline at end of file +EXPSFC/ +*.so diff --git a/source/apu.c b/source/apu.c index 1c9a758..eb6fcb6 100644 --- a/source/apu.c +++ b/source/apu.c @@ -243,7 +243,7 @@ void S9xSetAPUDSP(uint8_t byte) case APU_P_LOW + 0x50: case APU_P_LOW + 0x60: case APU_P_LOW + 0x70: - S9xSetSoundHertz(reg >> 4, ((((int16_t) byte + ((int16_t) APU.DSP [reg + 1] << 8)) & FREQUENCY_MASK) * 32000) >> 12); + S9xSetSoundHertz(reg >> 4, (((int16_t) byte + ((int16_t) APU.DSP [reg + 1] << 8)) & FREQUENCY_MASK) * 8); break; case APU_P_HIGH + 0x00: case APU_P_HIGH + 0x10: |