summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/ALc.c3
-rw-r--r--OpenAL32/Include/alSource.h13
-rw-r--r--OpenAL32/alSource.c14
3 files changed, 17 insertions, 13 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 0fab8171..d2bdf144 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 93f5eda1..154c9cfe 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 fd258872..db975eb5 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);