diff decoders/mpglib/common.c @ 274:9e7f9e09ea0e

Removed fprintf() calls. Replaced with SNDDBG() and Sound_SetError() calls.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 10 Mar 2002 19:15:25 +0000
parents e1429f96aded
children a9e211c3faa4
line wrap: on
line diff
--- a/decoders/mpglib/common.c	Sun Mar 10 19:04:46 2002 +0000
+++ b/decoders/mpglib/common.c	Sun Mar 10 19:15:25 2002 +0000
@@ -96,7 +96,7 @@
 
     if(!fr->bitrate_index)
     {
-      fprintf(stderr,"Free format not supported.\n");
+      Sound_SetError("MPGLIB: Free format not supported.");
       return (0);
     }
 
@@ -112,7 +112,7 @@
         fr->framesize /= freqs[fr->sampling_frequency];
         fr->framesize  = ((fr->framesize+fr->padding)<<2)-4;
 #else
-        fprintf(stderr,"Not supported!\n");
+        Sound_SetError("MPGLIB: Not supported!");
 #endif
         break;
       case 2:
@@ -125,7 +125,7 @@
         fr->framesize /= freqs[fr->sampling_frequency];
         fr->framesize += fr->padding - 4;
 #else
-        fprintf(stderr,"Not supported!\n");
+        Sound_SetError("MPGLIB: Not supported!");
 #endif
         break;
       case 3:
@@ -146,7 +146,7 @@
           fr->framesize = fr->framesize + fr->padding - 4;
         break; 
       default:
-        fprintf(stderr,"Sorry, unknown layer type.\n"); 
+        Sound_SetError("MPGLIB: Unknown layer type.");
         return (0);
     }
     return 1;