diff options
author | Chris Robinson <[email protected]> | 2012-09-14 04:13:18 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-09-14 04:13:18 -0700 |
commit | 7635afcb520747b74b7c65bb522016c2c7c2da4d (patch) | |
tree | 85eba69b24c5c089730636c10aa46dda361cc86a /OpenAL32/Include | |
parent | 74aee374a646aec1b1ebe40f9efbae692e9720d6 (diff) |
Use a source param for the resampler and move them to the mixer source
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alSource.h | 1 | ||||
-rw-r--r-- | OpenAL32/Include/alu.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index c9832e47..005663bd 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -149,6 +149,7 @@ typedef struct ALsource /** Current target parameters used for mixing. */ struct { + ResamplerFunc Resample; DryMixerFunc DryMix; WetMixerFunc WetMix; diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index a4ad48c8..79ba8f7e 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -80,6 +80,10 @@ struct ALbuffer; struct DirectParams; struct SendParams; +typedef void (*ResamplerFunc)(const ALfloat *src, ALuint frac, + ALuint increment, ALuint NumChannels, + ALfloat *RESTRICT dst, ALuint dstlen); + typedef ALvoid (*DryMixerFunc)(struct ALsource *self, ALCdevice *Device, struct DirectParams *params, const ALfloat *RESTRICT data, ALuint srcchan, |