ref: fc13052c3325db8cd968e0a4809c9c10e1c21d4f
parent: 058486e89b7ed1092e54fe273f0c223c243bb8a7
author: Erik de Castro Lopo <erikd@miles>
date: Thu May 27 21:53:00 EDT 2004
Make sinc/zoh/linear_process functions static and remove from common.h.
--- a/src/common.h
+++ b/src/common.h
@@ -95,8 +95,6 @@
} SRC_PRIVATE ;
/* In src_sinc.c */
-int sinc_process (SRC_PRIVATE *psrc, SRC_DATA *data) ;
-
const char* sinc_get_name (int src_enum) ;
const char* sinc_get_description (int src_enum) ;
@@ -103,8 +101,6 @@
int sinc_set_converter (SRC_PRIVATE *psrc, int src_enum) ;
/* In src_linear.c */
-int linear_process (SRC_PRIVATE *psrc, SRC_DATA *data) ;
-
const char* linear_get_name (int src_enum) ;
const char* linear_get_description (int src_enum) ;
@@ -111,8 +107,6 @@
int linear_set_converter (SRC_PRIVATE *psrc, int src_enum) ;
/* In src_zoh.c */
-int zoh_process (SRC_PRIVATE *psrc, SRC_DATA *data) ;
-
const char* zoh_get_name (int src_enum) ;
const char* zoh_get_description (int src_enum) ;
--- a/src/src_linear.c
+++ b/src/src_linear.c
@@ -24,6 +24,7 @@
#include "float_cast.h"
#include "common.h"
+static int linear_process (SRC_PRIVATE *psrc, SRC_DATA *data) ;
static void linear_reset (SRC_PRIVATE *psrc) ;
/*========================================================================================
@@ -43,7 +44,8 @@
/*----------------------------------------------------------------------------------------
*/
-int
+
+static int
linear_process (SRC_PRIVATE *psrc, SRC_DATA *data)
{ LINEAR_DATA *linear ;
double src_ratio, input_index ;
--- a/src/src_sinc.c
+++ b/src/src_sinc.c
@@ -86,6 +86,8 @@
float buffer [1] ;
} SINC_FILTER ;
+static int sinc_process (SRC_PRIVATE *psrc, SRC_DATA *data) ;
+
static double calc_output (SINC_FILTER *filter, increment_t increment, increment_t start_filter_index, int ch) ;
static void prepare_data (SINC_FILTER *filter, SRC_DATA *data, int half_filter_chan_len) ;
@@ -247,7 +249,7 @@
** Beware all ye who dare pass this point. There be dragons here.
*/
-int
+static int
sinc_process (SRC_PRIVATE *psrc, SRC_DATA *data)
{ SINC_FILTER *filter ;
double input_index, src_ratio, count, float_increment, terminate ;
--- a/src/src_zoh.c
+++ b/src/src_zoh.c
@@ -24,6 +24,7 @@
#include "float_cast.h"
#include "common.h"
+static int zoh_process (SRC_PRIVATE *psrc, SRC_DATA *data) ;
static void zoh_reset (SRC_PRIVATE *psrc) ;
/*========================================================================================
@@ -42,7 +43,7 @@
/*----------------------------------------------------------------------------------------
*/
-int
+static int
zoh_process (SRC_PRIVATE *psrc, SRC_DATA *data)
{ ZOH_DATA *zoh ;
double src_ratio, input_index ;