Commit 936956b8 authored by BOHMRR's avatar BOHMRR
Browse files

tinywaveout_c.h: made const values static to allow for multiple inclusion

parent cbdfaf96
Loading
Loading
Loading
Loading
+4 −14
Original line number Diff line number Diff line
@@ -241,13 +241,8 @@ static WAVEFILEOUT *CreateWav(
    return CreateBWF( fileName, sampleRate, numChannels, bps );
}

#ifdef DEBUG_SBA
#define MAX_PCM16 ( 32767 )
#define MIN_PCM16 ( -32768 )
#else
const int16_t MAX_PCM16 = 32767;
const int16_t MIN_PCM16 = -32768;
#endif
static const int16_t MAX_PCM16 = 32767;
static const int16_t MIN_PCM16 = -32768;
static __inline int32_t CLIP_PCM16(
    int32_t sample,
    uint32_t *clipcount )
@@ -271,13 +266,8 @@ static __inline int32_t CLIP_PCM16(
    return tmp;
}

#ifdef DEBUG_SBA
#define MAX_PCM24 ( 8388607 )
#define MIN_PCM24 ( -8388608 )
#else
const int32_t MAX_PCM24 = 8388607;
const int32_t MIN_PCM24 = -8388608;
#endif
static const int32_t MAX_PCM24 = 8388607;
static const int32_t MIN_PCM24 = -8388608;
static __inline int32_t CLIP_PCM24(
    int32_t sample,
    uint32_t *clipcount )