diff options
Diffstat (limited to 'Alc/mixer_c.c')
-rw-r--r-- | Alc/mixer_c.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c index b1ffb11b..28eee188 100644 --- a/Alc/mixer_c.c +++ b/Alc/mixer_c.c @@ -1,5 +1,7 @@ #include "config.h" +#include <assert.h> + #include "alMain.h" #include "alu.h" #include "alSource.h" @@ -13,6 +15,14 @@ static __inline ALfloat lerp32(const ALfloat *vals, ALuint frac) static __inline ALfloat cubic32(const ALfloat *vals, ALuint frac) { return cubic(vals[-1], vals[0], vals[1], vals[2], frac * (1.0f/FRACTIONONE)); } +void Resample_copy32_C(const ALfloat *data, ALuint frac, + ALuint increment, ALfloat *RESTRICT OutBuffer, ALuint BufferSize) +{ + (void)frac; + assert(increment==FRACTIONONE); + memcpy(OutBuffer, data, (BufferSize+1)*sizeof(ALfloat)); +} + #define DECL_TEMPLATE(Sampler) \ void Resample_##Sampler##_C(const ALfloat *data, ALuint frac, \ ALuint increment, ALfloat *RESTRICT OutBuffer, ALuint BufferSize) \ |