Unified · Split
| @@ -108,10 +108,12 @@ linear_vari_process (SRC_STATE *state, SRC_DATA *data) · 107 unmodified lines | ||
| 108 | 108 | if (priv->out_count > 0 && fabs (state->last_ratio - data->src_ratio) > SRC_MIN_RATIO_DIFF) |
| 109 | 109 | src_ratio = state->last_ratio + priv->out_gen * (data->src_ratio - state->last_ratio) / priv->out_count ; |
| 110 | 110 | |
| 111 | − if (SRC_DEBUG && priv->in_used < state->channels && input_index < 1.0) | |
| 111 | +#if SRC_DEBUG | |
| 112 | + if (priv->in_used < state->channels && input_index < 1.0) | |
| 112 | 113 | { printf ("Whoops!!!! in_used : %ld channels : %d input_index : %f\n", priv->in_used, state->channels, input_index) ; |
| 113 | 114 | exit (1) ; |
| 114 | 115 | } ; |
| 116 | +#endif | |
| 115 | 117 | |
| 116 | 118 | for (ch = 0 ; ch < state->channels ; ch++) |
| 117 | 119 | { data->data_out [priv->out_gen] = (float) (data->data_in [priv->in_used - state->channels + ch] + input_index * |