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 /OpenAL32/Include/alu.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 'OpenAL32/Include/alu.h')
-rw-r--r-- | OpenAL32/Include/alu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 7fdb75cc..df0e923d 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -120,8 +120,8 @@ typedef struct SendParams { } SendParams; -typedef void (*ResamplerFunc)(const ALfloat *src, ALuint frac, ALuint increment, - ALfloat *restrict dst, ALuint dstlen); +typedef const ALfloat* (*ResamplerFunc)(const ALfloat *src, ALuint frac, ALuint increment, + ALfloat *restrict dst, ALuint dstlen); typedef void (*DryMixerFunc)(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data, MixGains *Gains, ALuint Counter, ALuint OutPos, |