aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-09-14 04:13:18 -0700
committerChris Robinson <[email protected]>2012-09-14 04:13:18 -0700
commit7635afcb520747b74b7c65bb522016c2c7c2da4d (patch)
tree85eba69b24c5c089730636c10aa46dda361cc86a /OpenAL32
parent74aee374a646aec1b1ebe40f9efbae692e9720d6 (diff)
Use a source param for the resampler and move them to the mixer source
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alSource.h1
-rw-r--r--OpenAL32/Include/alu.h4
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,