aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--source/apu.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 4a37034..e2b142b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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: