aboutsummaryrefslogtreecommitdiff
path: root/source/soundux.c
diff options
context:
space:
mode:
authortwinaphex2016-08-08 05:20:28 +0200
committertwinaphex2016-08-08 05:20:28 +0200
commit27e31e6ae6d27c3bb528ef30c3cf38ff50f8b42f (patch)
tree54996f860a9944a3146ae863b06cdf790ad66dba /source/soundux.c
parent69d757c58d5d32363ba38bba4139053ea62f2ad8 (diff)
downloadsnes9x2005-27e31e6ae6d27c3bb528ef30c3cf38ff50f8b42f.tar.gz
snes9x2005-27e31e6ae6d27c3bb528ef30c3cf38ff50f8b42f.tar.bz2
snes9x2005-27e31e6ae6d27c3bb528ef30c3cf38ff50f8b42f.zip
Remove DJGPP ifdefs
Diffstat (limited to 'source/soundux.c')
-rw-r--r--source/soundux.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/source/soundux.c b/source/soundux.c
index c10abf5..a35c445 100644
--- a/source/soundux.c
+++ b/source/soundux.c
@@ -88,11 +88,6 @@
*******************************************************************************/
#ifndef USE_BLARGG_APU
-#ifdef __DJGPP__
-#include <allegro.h>
-#undef true
-#endif
-
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -196,17 +191,11 @@ void S9xAPUSetEndOfSample(int i, Channel* ch)
APU.DSP [APU_KOFF] &= ~(1 << i);
APU.KeyedChannels &= ~(1 << i);
}
-#ifdef __DJGPP
-END_OF_FUNCTION(S9xAPUSetEndOfSample)
-#endif
void S9xAPUSetEndX(int ch)
{
APU.DSP [APU_ENDX] |= 1 << ch;
}
-#ifdef __DJGPP
-END_OF_FUNCTION(S9xAPUSetEndX)
-#endif
void S9xSetEnvRate(Channel* ch, uint32_t rate, int direction, int target)
{
@@ -244,9 +233,6 @@ void S9xSetEnvRate(Channel* ch, uint32_t rate, int direction, int target)
}
}
-#ifdef __DJGPP
-END_OF_FUNCTION(S9xSetEnvRate);
-#endif
void S9xSetEnvelopeRate(int channel, uint32_t rate, int direction,
int target)
@@ -254,9 +240,6 @@ void S9xSetEnvelopeRate(int channel, uint32_t rate, int direction,
S9xSetEnvRate(&SoundData.channels [channel], rate, direction, target);
}
-#ifdef __DJGPP
-END_OF_FUNCTION(S9xSetEnvelopeRate);
-#endif
void S9xSetSoundVolume(int channel, int16_t volume_left, int16_t volume_right)
{
@@ -1074,22 +1057,11 @@ stereo_exit:
}
}
-#ifdef __DJGPP
-END_OF_FUNCTION(MixStereo);
-#endif
-
-#ifdef __sun
-extern uint8_t int2ulaw(int);
-#endif
-
// For backwards compatibility with older port specific code
void S9xMixSamplesO(uint8_t* buffer, int sample_count, int byte_offset)
{
S9xMixSamples(buffer + byte_offset, sample_count);
}
-#ifdef __DJGPP
-END_OF_FUNCTION(S9xMixSamplesO);
-#endif
void S9xMixSamples(uint8_t* buffer, int sample_count)
{
@@ -1184,10 +1156,6 @@ void S9xMixSamples(uint8_t* buffer, int sample_count)
}
-#ifdef __DJGPP
-END_OF_FUNCTION(S9xMixSamples);
-#endif
-
void S9xResetSound(bool full)
{
int i;