changeset 17863:8ec63246c118

last print on libaf to af_msg
author reynaldo
date Tue, 14 Mar 2006 16:57:16 +0000
parents ecb2023ee4b6
children c194b3eeb812
files help/help_mp-en.h libaf/format.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/help/help_mp-en.h	Tue Mar 14 00:45:06 2006 +0000
+++ b/help/help_mp-en.h	Tue Mar 14 16:57:16 2006 +0000
@@ -1158,6 +1158,10 @@
 #define MSGTR_AF_LADSPA_ErrControlBelow "%s: Input control #%d is below lower boundary of %0.4f.\n"
 #define MSGTR_AF_LADSPA_ErrControlAbove "%s: Input control #%d is above upper boundary of %0.4f.\n"
 
+// af_format.c
+
+#define MSGTR_AF_FORMAT_UnknownSpecial "Unknown special\n"
+
 // ========================== INPUT =========================================
 
 // joystick.c
--- a/libaf/format.c	Tue Mar 14 00:45:06 2006 +0000
+++ b/libaf/format.c	Tue Mar 14 16:57:16 2006 +0000
@@ -16,6 +16,7 @@
 #include <limits.h>
 
 #include "af.h"
+#include "help_mp.h"
 
 // Convert from string to format
 int af_str2fmt(char* str)
@@ -113,7 +114,7 @@
     case(AF_FORMAT_IMA_ADPCM): 
       i+=snprintf(&str[i],size-i,"IMA-ADPCM "); break;
     default:
-      printf("Unknown special\n");
+      af_msg(AF_MSG_ERROR,MSGTR_AF_FORMAT_UnknownSpecial); 
     }
   }
   else{