diff --git a/Alc/ALc.c b/Alc/ALc.c index 0fab817..d2bdf14 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -366,9 +366,6 @@ static const ALchar alExtList[] = // Mixing Priority Level static ALint RTPrioLevel; -// Resampler Quality -resampler_t DefaultResampler; - // Output Log File static FILE *LogFile; diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index 93f5eda..154c9cf 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -22,16 +22,9 @@ typedef enum { } resampler_t; extern resampler_t DefaultResampler; -static const ALsizei ResamplerPadding[RESAMPLER_MAX] = { - 0, /* Point */ - 1, /* Linear */ - 2, /* Cubic */ -}; -static const ALsizei ResamplerPrePadding[RESAMPLER_MAX] = { - 0, /* Point */ - 0, /* Linear */ - 1, /* Cubic */ -}; +extern const ALsizei ResamplerPadding[RESAMPLER_MAX]; +extern const ALsizei ResamplerPrePadding[RESAMPLER_MAX]; + typedef struct ALbufferlistitem { diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index fd25887..db975eb 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -32,6 +32,20 @@ #include "alThunk.h" #include "alAuxEffectSlot.h" + +resampler_t DefaultResampler; +const ALsizei ResamplerPadding[RESAMPLER_MAX] = { + 0, /* Point */ + 1, /* Linear */ + 2, /* Cubic */ +}; +const ALsizei ResamplerPrePadding[RESAMPLER_MAX] = { + 0, /* Point */ + 0, /* Linear */ + 1, /* Cubic */ +}; + + static ALvoid InitSourceParams(ALsource *Source); static ALvoid GetSourceOffset(ALsource *Source, ALenum eName, ALdouble *Offsets, ALdouble updateLen); static ALboolean ApplyOffset(ALsource *Source);