From 9fbd6c6c3f0e4c486cdf37823369959e43ac88c3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 26 Sep 2010 01:15:27 -0700 Subject: Make the SourceMix function a method of the ALsource struct --- OpenAL32/Include/alSource.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'OpenAL32/Include/alSource.h') diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index dbbc445f..448c9acc 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -96,12 +96,17 @@ typedef struct ALsource FILTER iirFilter; ALfloat history[OUTPUTCHANNELS*2]; } Params; + ALvoid (*Update)(struct ALsource *self, const ALCcontext *context); + ALvoid (*Mix)(struct ALsource *self, ALuint SamplesToDo, + ALfloat (*DryBuffer)[OUTPUTCHANNELS], + ALfloat *ClickRemoval, ALfloat *PendingClicks); // Index to itself ALuint source; } ALsource; -#define ALsource_Update(s,a) ((s)->Update(s,a)) +#define ALsource_Update(s,a) ((s)->Update(s,a)) +#define ALsource_Mix(s,a,b,c,d) ((s)->Mix(s,a,b,c,d)) ALvoid ReleaseALSources(ALCcontext *Context); -- cgit v1.2.3