diff options
author | Chris Robinson <[email protected]> | 2017-05-21 03:31:44 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-05-21 03:31:44 -0700 |
commit | 5691dceb38d7dfa6159c9c9b5358d094acc7e8a4 (patch) | |
tree | 063eb7a6ac469c6e1c8354f1be96a2503b697f7c /OpenAL32/Include | |
parent | edcdc1dae85246b8ae633d112cfd7dda93fdc8c9 (diff) |
Add a method to copy a filter's coefficients
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alFilter.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenAL32/Include/alFilter.h b/OpenAL32/Include/alFilter.h index 019e40d3..227d50cf 100644 --- a/OpenAL32/Include/alFilter.h +++ b/OpenAL32/Include/alFilter.h @@ -77,6 +77,15 @@ inline void ALfilterState_clear(ALfilterState *filter) void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat gain, ALfloat freq_mult, ALfloat rcpQ); +inline void ALfilterState_copyParams(ALfilterState *restrict dst, const ALfilterState *restrict src) +{ + dst->b0 = src->b0; + dst->b1 = src->b1; + dst->b2 = src->b2; + dst->a1 = src->a1; + dst->a2 = src->a2; +} + void ALfilterState_processC(ALfilterState *filter, ALfloat *restrict dst, const ALfloat *restrict src, ALsizei numsamples); inline void ALfilterState_processPassthru(ALfilterState *filter, const ALfloat *restrict src, ALsizei numsamples) |