Add SSE2 and SSE4.1 linear resamplers
[openal-soft.git] / Alc / mixer_defs.h
blob94e0b24fcabd9e434f61cb2c8bcc5042c60740db
1 #ifndef MIXER_DEFS_H
2 #define MIXER_DEFS_H
4 #include "AL/alc.h"
5 #include "AL/al.h"
6 #include "alMain.h"
8 struct MixGains;
9 struct MixGainMono;
11 struct HrtfParams;
12 struct HrtfState;
14 /* C resamplers */
15 const ALfloat *Resample_copy32_C(const ALfloat *src, ALuint frac, ALuint increment, ALfloat *restrict dst, ALuint dstlen);
16 const ALfloat *Resample_point32_C(const ALfloat *src, ALuint frac, ALuint increment, ALfloat *restrict dst, ALuint dstlen);
17 const ALfloat *Resample_lerp32_C(const ALfloat *src, ALuint frac, ALuint increment, ALfloat *restrict dst, ALuint dstlen);
18 const ALfloat *Resample_cubic32_C(const ALfloat *src, ALuint frac, ALuint increment, ALfloat *restrict dst, ALuint dstlen);
21 /* C mixers */
22 void MixDirect_Hrtf_C(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data,
23 ALuint Counter, ALuint Offset, ALuint OutPos, const ALuint IrSize,
24 const struct HrtfParams *hrtfparams, struct HrtfState *hrtfstate,
25 ALuint BufferSize);
26 void MixDirect_C(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data,
27 struct MixGains *Gains, ALuint Counter, ALuint OutPos,
28 ALuint BufferSize);
29 void MixSend_C(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data,
30 struct MixGainMono *Gain, ALuint Counter, ALuint OutPos,
31 ALuint BufferSize);
33 /* SSE mixers */
34 void MixDirect_Hrtf_SSE(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data,
35 ALuint Counter, ALuint Offset, ALuint OutPos, const ALuint IrSize,
36 const struct HrtfParams *hrtfparams, struct HrtfState *hrtfstate,
37 ALuint BufferSize);
38 void MixDirect_SSE(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data,
39 struct MixGains *Gains, ALuint Counter, ALuint OutPos,
40 ALuint BufferSize);
41 void MixSend_SSE(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data,
42 struct MixGainMono *Gain, ALuint Counter, ALuint OutPos,
43 ALuint BufferSize);
45 /* SSE resamplers */
46 const ALfloat *Resample_lerp32_SSE2(const ALfloat *src, ALuint frac, ALuint increment,
47 ALfloat *restrict dst, ALuint numsamples);
48 const ALfloat *Resample_lerp32_SSE41(const ALfloat *src, ALuint frac, ALuint increment,
49 ALfloat *restrict dst, ALuint numsamples);
51 /* Neon mixers */
52 void MixDirect_Hrtf_Neon(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data,
53 ALuint Counter, ALuint Offset, ALuint OutPos, const ALuint IrSize,
54 const struct HrtfParams *hrtfparams, struct HrtfState *hrtfstate,
55 ALuint BufferSize);
56 void MixDirect_Neon(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data,
57 struct MixGains *Gains, ALuint Counter, ALuint OutPos,
58 ALuint BufferSize);
59 void MixSend_Neon(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data,
60 struct MixGainMono *Gain, ALuint Counter, ALuint OutPos,
61 ALuint BufferSize);
63 #endif /* MIXER_DEFS_H */