Mercurial > SDL_sound_CoreAudio
diff decoders/mpglib/interface.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 | 52b9f37998db |
line wrap: on
line diff
--- a/decoders/mpglib/interface.c Sun Mar 10 19:04:46 2002 +0000 +++ b/decoders/mpglib/interface.c Sun Mar 10 19:15:25 2002 +0000 @@ -57,7 +57,7 @@ nbuf = malloc( sizeof(struct buf) ); if(!nbuf) { - fprintf(stderr,"Out of memory!\n"); + Sound_SetError("MPGLIB: Out of memory!"); return NULL; } nbuf->pnt = malloc(size); @@ -161,7 +161,7 @@ gmp = mp; if(osize < 4608) { - fprintf(stderr,"To less out space\n"); + Sound_SetError("MPGLIB: Not enough output space for decoding!"); return MP3_ERR; } @@ -237,7 +237,7 @@ { unsigned char *bsbufold; if(gmp->fsizeold < 0 && backstep > 0) { - fprintf(stderr,"Can't step back %ld!\n",backstep); + Sound_SetError("MPGLIB: Can't step back!"); /* FIXME: need formatting: %ld!\n",backstep); */ return MP3_ERR; } bsbufold = gmp->bsspace[gmp->bsnum] + 512;