diff options
author | Chris Robinson <[email protected]> | 2014-05-19 05:46:01 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-05-19 05:46:01 -0700 |
commit | cd983245f1967e04f833acc0ec27aefa94f061b0 (patch) | |
tree | 3bb462b9649026ac6676728d34b03f3737a8c740 /Alc/mixer_defs.h | |
parent | 8e04a8a0228aea5df0881f6b44d0fea61036d080 (diff) |
Return a sample pointer from resamplers
Both resampling and filtering now avoid copying samples when they no-op.
Diffstat (limited to 'Alc/mixer_defs.h')
-rw-r--r-- | Alc/mixer_defs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/mixer_defs.h b/Alc/mixer_defs.h index 130743c5..04fd1f53 100644 --- a/Alc/mixer_defs.h +++ b/Alc/mixer_defs.h @@ -12,10 +12,10 @@ struct HrtfParams; struct HrtfState; /* C resamplers */ -void Resample_copy32_C(const ALfloat *src, ALuint frac, ALuint increment, ALfloat *restrict dst, ALuint dstlen); -void Resample_point32_C(const ALfloat *src, ALuint frac, ALuint increment, ALfloat *restrict dst, ALuint dstlen); -void Resample_lerp32_C(const ALfloat *src, ALuint frac, ALuint increment, ALfloat *restrict dst, ALuint dstlen); -void Resample_cubic32_C(const ALfloat *src, ALuint frac, ALuint increment, ALfloat *restrict dst, ALuint dstlen); +const ALfloat *Resample_copy32_C(const ALfloat *src, ALuint frac, ALuint increment, ALfloat *restrict dst, ALuint dstlen); +const ALfloat *Resample_point32_C(const ALfloat *src, ALuint frac, ALuint increment, ALfloat *restrict dst, ALuint dstlen); +const ALfloat *Resample_lerp32_C(const ALfloat *src, ALuint frac, ALuint increment, ALfloat *restrict dst, ALuint dstlen); +const ALfloat *Resample_cubic32_C(const ALfloat *src, ALuint frac, ALuint increment, ALfloat *restrict dst, ALuint dstlen); /* C mixers */ |