Avoid making Resampler[Pre]Padding static
This commit is contained in:
parent
3e702ae2bc
commit
f09ae196a8
@ -366,9 +366,6 @@ static const ALchar alExtList[] =
|
|||||||
// Mixing Priority Level
|
// Mixing Priority Level
|
||||||
static ALint RTPrioLevel;
|
static ALint RTPrioLevel;
|
||||||
|
|
||||||
// Resampler Quality
|
|
||||||
resampler_t DefaultResampler;
|
|
||||||
|
|
||||||
// Output Log File
|
// Output Log File
|
||||||
static FILE *LogFile;
|
static FILE *LogFile;
|
||||||
|
|
||||||
|
@ -22,16 +22,9 @@ typedef enum {
|
|||||||
} resampler_t;
|
} resampler_t;
|
||||||
extern resampler_t DefaultResampler;
|
extern resampler_t DefaultResampler;
|
||||||
|
|
||||||
static const ALsizei ResamplerPadding[RESAMPLER_MAX] = {
|
extern const ALsizei ResamplerPadding[RESAMPLER_MAX];
|
||||||
0, /* Point */
|
extern const ALsizei ResamplerPrePadding[RESAMPLER_MAX];
|
||||||
1, /* Linear */
|
|
||||||
2, /* Cubic */
|
|
||||||
};
|
|
||||||
static const ALsizei ResamplerPrePadding[RESAMPLER_MAX] = {
|
|
||||||
0, /* Point */
|
|
||||||
0, /* Linear */
|
|
||||||
1, /* Cubic */
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef struct ALbufferlistitem
|
typedef struct ALbufferlistitem
|
||||||
{
|
{
|
||||||
|
@ -32,6 +32,20 @@
|
|||||||
#include "alThunk.h"
|
#include "alThunk.h"
|
||||||
#include "alAuxEffectSlot.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 InitSourceParams(ALsource *Source);
|
||||||
static ALvoid GetSourceOffset(ALsource *Source, ALenum eName, ALdouble *Offsets, ALdouble updateLen);
|
static ALvoid GetSourceOffset(ALsource *Source, ALenum eName, ALdouble *Offsets, ALdouble updateLen);
|
||||||
static ALboolean ApplyOffset(ALsource *Source);
|
static ALboolean ApplyOffset(ALsource *Source);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user