Remove the unused Device parameter

This commit is contained in:
Chris Robinson 2012-10-14 11:29:28 -07:00
parent a852669dce
commit f0d27e5f91
6 changed files with 11 additions and 17 deletions

View File

@ -330,8 +330,8 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo)
Filter2P(&directparms->iirFilter, chan, SrcData, ResampledData,
DstBufferSize);
Source->Params.DryMix(Device, directparms, SrcData, chan,
OutPos, SamplesToDo, DstBufferSize);
Source->Params.DryMix(directparms, SrcData, chan, OutPos,
SamplesToDo, DstBufferSize);
}
for(j = 0;j < Device->NumAuxSends;j++)

View File

@ -83,8 +83,7 @@ static __inline void ApplyCoeffs(ALuint Offset, ALfloat (*RESTRICT Values)[2],
#undef SUFFIX
void MixDirect_C(ALCdevice *Device, DirectParams *params,
const ALfloat *RESTRICT data, ALuint srcchan,
void MixDirect_C(DirectParams *params, const ALfloat *RESTRICT data, ALuint srcchan,
ALuint OutPos, ALuint SamplesToDo, ALuint BufferSize)
{
ALfloat (*RESTRICT DryBuffer)[BUFFERSIZE] = params->OutBuffer;
@ -93,7 +92,6 @@ void MixDirect_C(ALCdevice *Device, DirectParams *params,
ALfloat DrySend;
ALuint pos;
ALuint c;
(void)Device;
for(c = 0;c < MaxChannels;c++)
{

View File

@ -16,16 +16,16 @@ void Resample_cubic32_C(const ALfloat *src, ALuint frac, ALuint increment, ALflo
/* C mixers */
void MixDirect_Hrtf_C(ALCdevice*,struct DirectParams*,const ALfloat*RESTRICT,ALuint,ALuint,ALuint,ALuint);
void MixDirect_C(ALCdevice*,struct DirectParams*,const ALfloat*RESTRICT,ALuint,ALuint,ALuint,ALuint);
void MixDirect_Hrtf_C(struct DirectParams*,const ALfloat*RESTRICT,ALuint,ALuint,ALuint,ALuint);
void MixDirect_C(struct DirectParams*,const ALfloat*RESTRICT,ALuint,ALuint,ALuint,ALuint);
void MixSend_C(struct SendParams*,const ALfloat*RESTRICT,ALuint,ALuint,ALuint);
/* SSE mixers */
void MixDirect_Hrtf_SSE(ALCdevice*,struct DirectParams*,const ALfloat*RESTRICT,ALuint,ALuint,ALuint,ALuint);
void MixDirect_SSE(ALCdevice*,struct DirectParams*,const ALfloat*RESTRICT,ALuint,ALuint,ALuint,ALuint);
void MixDirect_Hrtf_SSE(struct DirectParams*,const ALfloat*RESTRICT,ALuint,ALuint,ALuint,ALuint);
void MixDirect_SSE(struct DirectParams*,const ALfloat*RESTRICT,ALuint,ALuint,ALuint,ALuint);
void MixSend_SSE(struct SendParams*,const ALfloat*RESTRICT,ALuint,ALuint,ALuint);
/* Neon mixers */
void MixDirect_Hrtf_Neon(ALCdevice*,struct DirectParams*,const ALfloat*RESTRICT,ALuint,ALuint,ALuint,ALuint);
void MixDirect_Hrtf_Neon(struct DirectParams*,const ALfloat*RESTRICT,ALuint,ALuint,ALuint,ALuint);
#endif /* MIXER_DEFS_H */

View File

@ -29,8 +29,7 @@ static __inline void ApplyCoeffs(ALuint Offset, ALfloat (*RESTRICT Values)[2],
ALfloat left, ALfloat right);
void MixDirect_Hrtf(ALCdevice *Device, DirectParams *params,
const ALfloat *RESTRICT data, ALuint srcchan,
void MixDirect_Hrtf(DirectParams *params, const ALfloat *RESTRICT data, ALuint srcchan,
ALuint OutPos, ALuint SamplesToDo, ALuint BufferSize)
{
ALfloat (*RESTRICT DryBuffer)[BUFFERSIZE] = params->OutBuffer;
@ -50,7 +49,6 @@ void MixDirect_Hrtf(ALCdevice *Device, DirectParams *params,
ALfloat left, right;
ALuint pos;
ALuint c;
(void)Device;
pos = 0;
for(c = 0;c < IrSize;c++)

View File

@ -133,8 +133,7 @@ static __inline void ApplyCoeffs(ALuint Offset, ALfloat (*RESTRICT Values)[2],
#undef SUFFIX
void MixDirect_SSE(ALCdevice *Device, DirectParams *params,
const ALfloat *RESTRICT data, ALuint srcchan,
void MixDirect_SSE(DirectParams *params, const ALfloat *RESTRICT data, ALuint srcchan,
ALuint OutPos, ALuint SamplesToDo, ALuint BufferSize)
{
ALfloat (*RESTRICT DryBuffer)[BUFFERSIZE] = params->OutBuffer;
@ -143,7 +142,6 @@ void MixDirect_SSE(ALCdevice *Device, DirectParams *params,
ALfloat DrySend;
ALuint pos;
ALuint c;
(void)Device;
for(c = 0;c < MaxChannels;c++)
{

View File

@ -88,7 +88,7 @@ struct SendParams;
typedef void (*ResamplerFunc)(const ALfloat *src, ALuint frac, ALuint increment,
ALfloat *RESTRICT dst, ALuint dstlen);
typedef ALvoid (*DryMixerFunc)(ALCdevice *Device, struct DirectParams *params,
typedef ALvoid (*DryMixerFunc)(struct DirectParams *params,
const ALfloat *RESTRICT data, ALuint srcchan,
ALuint OutPos, ALuint SamplesToDo,
ALuint BufferSize);