From ca7e790374612fc7a65e331048b47272d5e25c74 Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Sat, 12 Jan 2013 20:37:04 -0500 Subject: soundux.cpp: Inline MixStereo (into S9xMixSamples). --- source/soundux.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/soundux.cpp') diff --git a/source/soundux.cpp b/source/soundux.cpp index 8c7841b..acddd0a 100644 --- a/source/soundux.cpp +++ b/source/soundux.cpp @@ -891,7 +891,7 @@ void DecodeBlock (Channel *ch) } -void MixStereo (int sample_count) +static inline void MixStereo (int sample_count) { static int wave[SOUND_BUFFER_SIZE]; @@ -1152,7 +1152,6 @@ void MixStereo (int sample_count) // Snes9x 1.53's SPC_DSP.cpp, by blargg int feedback = (noise_gen << 13) ^ (noise_gen << 14); noise_gen = (feedback & 0x4000) ^ (noise_gen >> 1); - VL = 0; ch->sample = (noise_gen << 17) >> 17; ch->interpolate = 0; } @@ -1197,7 +1196,7 @@ END_OF_FUNCTION(MixStereo); #endif #ifndef FOREVER_STEREO -void MixMono (int sample_count) +static inline void MixMono (int sample_count) { static int wave[SOUND_BUFFER_SIZE]; -- cgit v1.2.3