shithub: libsamplerate

Download patch

ref: a25ac789c019b25870bcf20d35498f95ad610336
parent: 0d8a13492defe99e5b25f3e4f19986fffc4e267c
author: Erik de Castro Lopo <[email protected]>
date: Mon Aug 27 15:28:26 EDT 2012

Move function is_bad_src_ratio() to common.h.

--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
     * src/common.h src/samplerate.c
     Add SRC_ERR_BAD_INTERNAL_STATE error number and string.
+    Move function is_bad_src_ratio() to common.h.
 
 2012-08-23  Erik de Castro Lopo  <erikd AT mega-nerd DOT com>
 
--- a/src/common.h
+++ b/src/common.h
@@ -166,5 +166,11 @@
 	return res ;
 } /* fmod_one */
 
+static inline int
+is_bad_src_ratio (double ratio)
+{	return (ratio < (1.0 / SRC_MAX_RATIO) || ratio > (1.0 * SRC_MAX_RATIO)) ;
+} /* is_bad_src_ratio */
+
+
 #endif	/* COMMON_H_INCLUDED */
 
--- a/src/samplerate.c
+++ b/src/samplerate.c
@@ -35,11 +35,6 @@
 static int psrc_set_converter (SRC_PRIVATE	*psrc, int converter_type) ;
 
 
-static inline int
-is_bad_src_ratio (double ratio)
-{	return (ratio < (1.0 / SRC_MAX_RATIO) || ratio > (1.0 * SRC_MAX_RATIO)) ;
-} /* is_bad_src_ratio */
-
 SRC_STATE *
 src_new (int converter_type, int channels, int *error)
 {	SRC_PRIVATE	*psrc ;