diff options
author | Chris Robinson <[email protected]> | 2014-05-18 10:35:11 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-05-18 10:35:11 -0700 |
commit | 9317ec59b99af1b598de1c302470113a77da966d (patch) | |
tree | 0d88df602051872f4741e68457f340eecfbb28f4 /OpenAL32 | |
parent | c9083d04fabb2cfc0622a8ec36f892355a025df5 (diff) |
Don't pass the SendParams to the wet-path mixer
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alu.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 432e9bd3..4d0beb38 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -66,6 +66,12 @@ typedef struct MixGains { ALfloat Target[MaxChannels]; } MixGains; +typedef struct MixGainMono { + ALfloat Current; + ALfloat Step; + ALfloat Target; +} MixGainMono; + typedef struct DirectParams { ALfloat (*OutBuffer)[BUFFERSIZE]; @@ -106,27 +112,23 @@ typedef struct SendParams { /* Gain control, which applies to all input channels to a single (mono) * output buffer. */ - struct { - ALfloat Current; - ALfloat Step; - ALfloat Target; - } Gain; + MixGainMono Gain; } SendParams; typedef void (*ResamplerFunc)(const ALfloat *src, ALuint frac, ALuint increment, ALfloat *restrict dst, ALuint dstlen); -typedef ALvoid (*DryMixerFunc)(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data, - MixGains *Gains, ALuint Counter, ALuint OutPos, - ALuint BufferSize); +typedef void (*DryMixerFunc)(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data, + MixGains *Gains, ALuint Counter, ALuint OutPos, + ALuint BufferSize); typedef void (*HrtfMixerFunc)(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data, ALuint Counter, ALuint Offset, const ALuint IrSize, const HrtfParams *hrtfparams, HrtfState *hrtfstate, ALuint OutPos, ALuint BufferSize); -typedef ALvoid (*WetMixerFunc)(struct SendParams *params, - const ALfloat *restrict data, - ALuint OutPos, ALuint BufferSize); +typedef void (*WetMixerFunc)(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data, + MixGainMono *Gain, ALuint Counter, ALuint OutPos, + ALuint BufferSize); #define GAIN_SILENCE_THRESHOLD (0.00001f) /* -100dB */ |