shithub: libsamplerate

Download patch

ref: cc3f16136d1a5140cb19770bcdae29d2dd4f50b3
parent: ab98677064779932e58a7cc518a9d2c85a6abbb3
author: Erik de Castro Lopo <erikd@mega-nerd.com>
date: Sat Feb 14 12:44:26 EST 2009

Add new error value SRC_ERR_SINC_PREPARE_DATA_BAD_LEN.

--- a/src/common.h
+++ b/src/common.h
@@ -80,6 +80,7 @@
 	SRC_ERR_BAD_MODE,
 	SRC_ERR_NULL_CALLBACK,
 	SRC_ERR_NO_VARIABLE_RATIO,
+	SRC_ERR_SINC_PREPARE_DATA_BAD_LEN,
 
 	/* This must be the last error number. */
 	SRC_ERR_MAX_ERROR
--- a/src/samplerate.c
+++ b/src/samplerate.c
@@ -424,6 +424,8 @@
 				return "Callback function pointer is NULL in src_callback_read ()." ;
 		case SRC_ERR_NO_VARIABLE_RATIO :
 				return "This converter only allows constant conversion ratios." ;
+		case SRC_ERR_SINC_PREPARE_DATA_BAD_LEN :
+				return "Internal error : Bad length in prepare_data ()." ;
 
 		case SRC_ERR_MAX_ERROR :
 				return "Placeholder. No error defined for this error number." ;