ref: 415f83d5f152307753e7e4ad6af061a494b1e9bb
parent: 72257eecb05a0f63f5fbb978ab39ee5cc7fd973f
author: Erik de Castro Lopo <erikd@miles>
date: Mon Nov 8 06:45:58 EST 2004
Add SRC_ERR_NO_VARIABLE_RATIO. Patches applied: * erikd@miles--2004/SecretRabbitCode--iirpoly--0.1.0--base-0 tag of erikd@miles--2004/SecretRabbitCode--mdev--0.1.0--patch-47 * erikd@miles--2004/SecretRabbitCode--iirpoly--0.1.0--patch-1 Merge fixes from --mdev branch and iir-poly changes from old CVS branch. * erikd@miles--2004/SecretRabbitCode--iirpoly--0.1.0--patch-2 Update ChangeLog. * erikd@miles--2004/SecretRabbitCode--iirpoly--0.1.0--patch-3 Merge from mdev tree. * erikd@miles--2004/SecretRabbitCode--iirpoly--0.1.0--patch-4 Merge from --mdev branch. * erikd@miles--2004/SecretRabbitCode--iirpoly--0.1.0--patch-5 Add SRC_ERR_NO_VARIABLE_RATIO.
--- a/src/common.h
+++ b/src/common.h
@@ -71,6 +71,7 @@
SRC_ERR_BAD_CALLBACK,
SRC_ERR_BAD_MODE,
SRC_ERR_NULL_CALLBACK,
+ SRC_ERR_NO_VARIABLE_RATIO,
/* This must be the last error number. */
SRC_ERR_MAX_ERROR
--- a/src/samplerate.c
+++ b/src/samplerate.c
@@ -401,6 +401,8 @@
return "Calling mode differs from initialisation mode (ie process v callback)." ;
case SRC_ERR_NULL_CALLBACK :
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_MAX_ERROR :
return "Placeholder. No error defined for this error number." ;