diff options
author | João Silva | 2017-01-14 23:08:50 +0000 |
---|---|---|
committer | João Silva | 2017-01-14 23:08:50 +0000 |
commit | 3b8323853f4eeddb61398e77c51bb2349f430227 (patch) | |
tree | 55cb980be4bf5bf93041392470637d78c73b4854 /source/soundux.c | |
parent | d59c856fbf576daa91fa4a8bade38d97b4edbbe4 (diff) | |
download | snes9x2005-3b8323853f4eeddb61398e77c51bb2349f430227.tar.gz snes9x2005-3b8323853f4eeddb61398e77c51bb2349f430227.tar.bz2 snes9x2005-3b8323853f4eeddb61398e77c51bb2349f430227.zip |
Removed a LOT of useless stuff.
Diffstat (limited to 'source/soundux.c')
-rw-r--r-- | source/soundux.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/soundux.c b/source/soundux.c index dd86493..9a6c304 100644 --- a/source/soundux.c +++ b/source/soundux.c @@ -74,7 +74,6 @@ void DecodeBlockAsm2(int8_t*, int16_t*, int32_t*, int32_t*); // F is channel's current frequency and M is the 16-bit modulation waveform // from the previous channel multiplied by the current envelope volume level. #define PITCH_MOD(F,M) ((F) * ((((uint32_t) (M)) + 0x800000) >> 16) >> 7) -//#define PITCH_MOD(F,M) ((F) * ((((M) & 0x7fffff) >> 14) + 1) >> 8) #define LAST_SAMPLE 0xffffff #define JUST_PLAYED_LAST_SAMPLE(c) ((c)->sample_pointer >= LAST_SAMPLE) @@ -417,7 +416,6 @@ void DecodeBlock(Channel* ch) uint8_t interim_byte = 0; compressed++; - int16_t* raw = ch->block = ch->decoded; // Seperate out the header parts used for decoding @@ -988,8 +986,6 @@ void S9xMixSamples(uint8_t* buffer, int sample_count) MixStereo(sample_count); /* Mix and convert waveforms */ - int byte_count = sample_count << 1; - if (SoundData.echo_enable && SoundData.echo_buffer_size) { // 16-bit stereo sound with echo enabled ... |