changeset 12008:8631b43c9d82

10l - replace 6 with AF_NCH
author henry
date Thu, 04 Mar 2004 19:39:16 +0000
parents b41cc72bb8ad
children a995337ce00c
files libaf/af_channels.c libaf/af_pan.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/af_channels.c	Tue Mar 02 08:52:59 2004 +0000
+++ b/libaf/af_channels.c	Thu Mar 04 19:39:16 2004 +0000
@@ -171,7 +171,7 @@
     // Reinit must be called after this function has been called
     
     // Sanity check
-    if(((int*)arg)[0] <= 0 || ((int*)arg)[0] > 6){
+    if(((int*)arg)[0] <= 0 || ((int*)arg)[0] > AF_NCH){
       af_msg(AF_MSG_ERROR,"[channels] The number of output channels must be" 
 	     " between 1 and %i. Current value is %i\n",AF_NCH,((int*)arg)[0]);
       return AF_ERROR;
--- a/libaf/af_pan.c	Tue Mar 02 08:52:59 2004 +0000
+++ b/libaf/af_pan.c	Thu Mar 04 19:39:16 2004 +0000
@@ -96,7 +96,7 @@
     // Reinit must be called after this function has been called
 
     // Sanity check
-    if(((int*)arg)[0] <= 0 || ((int*)arg)[0] > 6){
+    if(((int*)arg)[0] <= 0 || ((int*)arg)[0] > AF_NCH){
       af_msg(AF_MSG_ERROR,"[pan] The number of output channels must be" 
 	     " between 1 and %i. Current value is %i\n",AF_NCH,((int*)arg)[0]);
       return AF_ERROR;