summaryrefslogtreecommitdiff
path: root/ham/freedv/patches/patch-src_sox__biquad.c
blob: 33fd3b3506a18841c38716966c0a28ac4b880e7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-src_sox__biquad.c,v 1.1 2016/01/19 04:03:21 dbj Exp $

Avoid calling a sox internal function that is no longer
exported by the library.

--- src/sox_biquad.c.orig	2014-06-04 11:05:20.000000000 +0000
+++ src/sox_biquad.c
@@ -34,9 +34,6 @@
 
 #define N_MAX 1024
 
-int lsx_biquad_flow(sox_effect_t * effp, const sox_sample_t *ibuf,
-                    sox_sample_t *obuf, size_t *isamp, size_t *osamp);
-
 void sox_biquad_start(void)
 {
     int r = sox_init();
@@ -94,7 +91,7 @@ void sox_biquad_filter(void *sbq, short 
     for(i=0; i<n; i++)
         ibuf[i] = SOX_SIGNED_16BIT_TO_SAMPLE(in[i], clips);
     isamp = osamp = (unsigned int)n;
-    lsx_biquad_flow(e, ibuf, obuf, &isamp, &osamp);
+    e->handler.flow(e, ibuf, obuf, &isamp, &osamp);
     for(i=0; i<n; i++)
         out[i] = SOX_SAMPLE_TO_SIGNED_16BIT(obuf[i], clips); 
 }