From 9dbcc39c6e48f132f4dc038c7352ee432b4f000c Mon Sep 17 00:00:00 2001 From: David Reid Date: Wed, 29 Jan 2020 19:01:04 +1000 Subject: [PATCH] Update biquad documentation. --- research/ma_lpf.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/research/ma_lpf.h b/research/ma_lpf.h index 5574f3d4..8c695cbb 100644 --- a/research/ma_lpf.h +++ b/research/ma_lpf.h @@ -22,8 +22,10 @@ Biquad filtering is achieved with the `ma_biquad` API. Example: Biquad filtering is implemented using transposed direct form 2. The denominator coefficients are a0, a1 and a2, and the numerator coefficients are b0, b1 and b2. The a0 coefficient is required and coefficients must not be pre-normalized. -Supported formats are ma_format_s16 and ma_format_f32. If you need to use a different format you need to convert it yourself beforehand. Input and output -frames are always interleaved. +Supported formats are ma_format_s16 and ma_format_f32. If you need to use a different format you need to convert it yourself beforehand. When using +ma_format_s16 the biquad filter will use fixed point arithmetic. When using ma_format_f32, floating point arithmetic will be used. + +Input and output frames are always interleaved. Filtering can be applied in-place by passing in the same pointer for both the input and output buffers, like so: