Avoid making Resampler[Pre]Padding static

This commit is contained in:
Chris Robinson 2010-11-28 17:37:14 -08:00
parent 3e702ae2bc
commit f09ae196a8
3 changed files with 17 additions and 13 deletions

View File

@ -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;

View File

@ -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
{

View File

@ -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);