aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraliaspider2014-11-02 09:58:16 +0100
committeraliaspider2014-11-02 09:58:16 +0100
commitccf335d7dcfce22c8a1364390f4d4574df30506b (patch)
tree504acba5396e3a6bb11f80bbb4169fb45d469a45
parent72624fa54282899e50f1ea0febfafc8f1fdde441 (diff)
downloadsnesemu-ccf335d7dcfce22c8a1364390f4d4574df30506b.tar.gz
snesemu-ccf335d7dcfce22c8a1364390f4d4574df30506b.tar.bz2
snesemu-ccf335d7dcfce22c8a1364390f4d4574df30506b.zip
remove some sound hacks
-rw-r--r--source/snes9x.h1
-rw-r--r--source/soundux.c8
2 files changed, 0 insertions, 9 deletions
diff --git a/source/snes9x.h b/source/snes9x.h
index 9ddce7b..48a5714 100644
--- a/source/snes9x.h
+++ b/source/snes9x.h
@@ -334,7 +334,6 @@ typedef struct
bool8 ThreadSound;
bool8 Mute;
bool8 NextAPUEnabled;
- bool8 FixFrequency;
/* Graphics options */
bool8 Transparency;
diff --git a/source/soundux.c b/source/soundux.c
index d991c04..779cfc4 100644
--- a/source/soundux.c
+++ b/source/soundux.c
@@ -475,11 +475,6 @@ void S9xSetSoundFrequency(int channel, int hertz)
hertz = NoiseFreq [APU.DSP [APU_FLG] & 0x1f];
SoundData.channels[channel].frequency = (int)
(((int64) hertz * FIXED_POINT) / so.playback_rate);
- if (Settings.FixFrequency)
- {
- SoundData.channels[channel].frequency =
- (unsigned long)(SoundData.channels[channel].frequency * 49 / 50);
- }
}
}
@@ -800,9 +795,6 @@ static inline void MixStereo(int sample_count)
int32 VL, VR;
unsigned long freq0 = ch->frequency;
- // freq0 = (unsigned long) ((double) freq0 * 0.985);//uncommented by jonathan gevaryahu, as it is necessary for most cards in linux
- freq0 = freq0 * 985 / 1000;
-
bool8 mod = pitch_mod & (1 << J);
if (ch->needs_decode)