ref: eaaab36fd4dc95f88876df8905c106724e82f822
parent: d2fbdfd3272dccc27618ca36ddd52ea2631a7b19
author: sezero <sezero@users.sourceforge.net>
date: Thu Nov 12 07:37:02 EST 2020
src_linear.c: change SRC_DEBUG check into a conditional compile
--- a/src/src_linear.c
+++ b/src/src_linear.c
@@ -108,10 +108,12 @@
if (priv->out_count > 0 && fabs (state->last_ratio - data->src_ratio) > SRC_MIN_RATIO_DIFF)
src_ratio = state->last_ratio + priv->out_gen * (data->src_ratio - state->last_ratio) / priv->out_count ;
- if (SRC_DEBUG && priv->in_used < state->channels && input_index < 1.0)
+#if SRC_DEBUG
+ if (priv->in_used < state->channels && input_index < 1.0)
{ printf ("Whoops!!!! in_used : %ld channels : %d input_index : %f\n", priv->in_used, state->channels, input_index) ;
exit (1) ;
} ;
+#endif
for (ch = 0 ; ch < state->channels ; ch++)
{ data->data_out [priv->out_gen] = (float) (data->data_in [priv->in_used - state->channels + ch] + input_index *