From ccf335d7dcfce22c8a1364390f4d4574df30506b Mon Sep 17 00:00:00 2001 From: aliaspider Date: Sun, 2 Nov 2014 09:58:16 +0100 Subject: remove some sound hacks --- source/snes9x.h | 1 - source/soundux.c | 8 -------- 2 files changed, 9 deletions(-) (limited to 'source') 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) -- cgit v1.2.3