diff options
author | Chris Robinson <[email protected]> | 2017-01-16 08:54:30 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-01-16 08:54:30 -0800 |
commit | 325a49975a762744638b56b6a7ddd2ccd40fda55 (patch) | |
tree | 786d37a90accef04e019abb824cdf13055098112 /OpenAL32/Include | |
parent | cbb796bf31cd3acfba0ce35e71a51d03e7e26021 (diff) |
Use ALsizei and ALint for sizes and offsets with resamplers and filters
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alFilter.h | 4 | ||||
-rw-r--r-- | OpenAL32/Include/alu.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/OpenAL32/Include/alFilter.h b/OpenAL32/Include/alFilter.h index bec4d46b..019e40d3 100644 --- a/OpenAL32/Include/alFilter.h +++ b/OpenAL32/Include/alFilter.h @@ -77,9 +77,9 @@ inline void ALfilterState_clear(ALfilterState *filter) void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat gain, ALfloat freq_mult, ALfloat rcpQ); -void ALfilterState_processC(ALfilterState *filter, ALfloat *restrict dst, const ALfloat *restrict src, ALuint numsamples); +void ALfilterState_processC(ALfilterState *filter, ALfloat *restrict dst, const ALfloat *restrict src, ALsizei numsamples); -inline void ALfilterState_processPassthru(ALfilterState *filter, const ALfloat *restrict src, ALuint numsamples) +inline void ALfilterState_processPassthru(ALfilterState *filter, const ALfloat *restrict src, ALsizei numsamples) { if(numsamples >= 2) { diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index cd2170cf..4a424246 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -149,7 +149,8 @@ typedef struct SendParams { typedef const ALfloat* (*ResamplerFunc)(const BsincState *state, - const ALfloat *restrict src, ALuint frac, ALuint increment, ALfloat *restrict dst, ALuint dstlen + const ALfloat *restrict src, ALuint frac, ALint increment, + ALfloat *restrict dst, ALsizei dstlen ); typedef void (*MixerFunc)(const ALfloat *data, ALsizei OutChans, |