bw_reverb: add missing BW_RESTRICT and fix doc

This commit is contained in:
Stefano D'Angelo 2024-10-23 08:21:35 +02:00
parent 3a8e279fde
commit 6431749bf8

View File

@ -40,11 +40,15 @@
* <li>Added support for <code>BW_INCLUDE_WITH_QUOTES</code>, * <li>Added support for <code>BW_INCLUDE_WITH_QUOTES</code>,
* <code>BW_NO_CXX</code>, and * <code>BW_NO_CXX</code>, and
* <code>BW_CXX_NO_EXTERN_C</code>.</li> * <code>BW_CXX_NO_EXTERN_C</code>.</li>
* <li>Added missing <code>BW_RESTRICT</code> to arguments of
* <code>bw_reverb_process1()</code>.</li>
* <li>Added debugging checks from <code>bw_reverb_process()</code> to * <li>Added debugging checks from <code>bw_reverb_process()</code> to
* <code>bw_reverb_process_multi()</code>.</li> * <code>bw_reverb_process_multi()</code>.</li>
* <li>Added debugging checks in <code>bw_reverb_process_multi()</code> * <li>Added debugging checks in <code>bw_reverb_process_multi()</code>
* to ensure that buffers used for both input and output appear at * to ensure that buffers used for both input and output appear at
* the same channel indices.</li> * the same channel indices.</li>
* <li>Removed wrong sentence from the documentation of
* <code>bw_reverb_reset_state()</code>.</li>
* </ul> * </ul>
* </li> * </li>
* <li>Version <strong>1.1.0</strong>: * <li>Version <strong>1.1.0</strong>:
@ -178,8 +182,6 @@ static inline void bw_reverb_reset_state(
* The corresponding initial output values are put into `y_l_0` (left) and * The corresponding initial output values are put into `y_l_0` (left) and
* `y_r_0` (right). * `y_r_0` (right).
* *
* Returns the corresponding initial output value.
*
* #### bw_reverb_reset_state_multi() * #### bw_reverb_reset_state_multi()
* ```>>> */ * ```>>> */
static inline void bw_reverb_reset_state_multi( static inline void bw_reverb_reset_state_multi(
@ -219,8 +221,8 @@ static inline void bw_reverb_process1(
bw_reverb_state * BW_RESTRICT state, bw_reverb_state * BW_RESTRICT state,
float x_l, float x_l,
float x_r, float x_r,
float * y_l, float * BW_RESTRICT y_l,
float * y_r); float * BW_RESTRICT y_r);
/*! <<<``` /*! <<<```
* Processes one set of input samples `x_l` (left) and `x_r` (right) using * Processes one set of input samples `x_l` (left) and `x_r` (right) using
* `coeffs`, while using and updating `state`. The left and right output * `coeffs`, while using and updating `state`. The left and right output
@ -862,8 +864,8 @@ static inline void bw_reverb_process1(
bw_reverb_state * BW_RESTRICT state, bw_reverb_state * BW_RESTRICT state,
float x_l, float x_l,
float x_r, float x_r,
float * y_l, float * BW_RESTRICT y_l,
float * y_r) { float * BW_RESTRICT y_r) {
BW_ASSERT(coeffs != BW_NULL); BW_ASSERT(coeffs != BW_NULL);
BW_ASSERT_DEEP(bw_reverb_coeffs_is_valid(coeffs)); BW_ASSERT_DEEP(bw_reverb_coeffs_is_valid(coeffs));
BW_ASSERT_DEEP(coeffs->state >= bw_reverb_coeffs_state_reset_coeffs); BW_ASSERT_DEEP(coeffs->state >= bw_reverb_coeffs_state_reset_coeffs);