diff options
author | Chris Robinson <[email protected]> | 2016-05-16 14:46:06 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-05-16 14:46:06 -0700 |
commit | 56c6b3f56cfd300ce62b6dc932a241ac619cb086 (patch) | |
tree | 56a6ab88fbc2b45be787e59c5ecb44e689278bca /OpenAL32 | |
parent | 945fd022d6c9d612a5fae944d8cbef68927d8a92 (diff) |
Don't store the source's update method with the voice
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alSource.h | 3 | ||||
-rw-r--r-- | OpenAL32/Include/alu.h | 3 | ||||
-rw-r--r-- | OpenAL32/alSource.c | 4 |
3 files changed, 0 insertions, 10 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index 6d915153..4a15cea1 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -25,9 +25,6 @@ typedef struct ALbufferlistitem { typedef struct ALvoice { struct ALsource *volatile Source; - /** Method to update mixing parameters. */ - ALvoid (*Update)(struct ALvoice *self, const struct ALsourceProps *props, const struct ALbuffer *ALBuffer, const ALCcontext *context); - /** Current target parameters used for mixing. */ ALint Step; diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index fc58bfb1..c70c8cff 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -374,9 +374,6 @@ void ComputeFirstOrderGainsMC(const ChannelConfig *chancoeffs, ALuint numchans, void ComputeFirstOrderGainsBF(const BFChannelConfig *chanmap, ALuint numchans, const ALfloat mtx[4], ALfloat ingain, ALfloat gains[MAX_OUTPUT_CHANNELS]); -ALvoid CalcAttnSourceParams(struct ALvoice *voice, const struct ALsourceProps *props, const struct ALbuffer *buffer, const ALCcontext *ALContext); -ALvoid CalcNonAttnSourceParams(struct ALvoice *voice, const struct ALsourceProps *props, const struct ALbuffer *buffer, const ALCcontext *ALContext); - ALvoid MixSource(struct ALvoice *voice, struct ALsource *source, ALCdevice *Device, ALuint SamplesToDo); ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size); diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 1124c9c3..090b4659 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -2965,10 +2965,6 @@ ALvoid SetSourceState(ALsource *Source, ALCcontext *Context, ALenum state) } } - if(BufferList->buffer->FmtChannels == FmtMono) - voice->Update = CalcAttnSourceParams; - else - voice->Update = CalcNonAttnSourceParams; UpdateSourceProps(Source, device->NumAuxSends); } else if(state == AL_PAUSED) |