Mercurial > SDL_sound_CoreAudio
diff decoders/mpglib/mpglib_common.c @ 387:fb519e6028e3
Changed all the Sound_SetError() calls to __Sound_SetError (or BAIL*_MACRO)
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 05 Jul 2002 23:11:51 +0000 |
parents | cbb15ecf423a |
children | c66080364dff |
line wrap: on
line diff
--- a/decoders/mpglib/mpglib_common.c Fri Jul 05 22:34:55 2002 +0000 +++ b/decoders/mpglib/mpglib_common.c Fri Jul 05 23:11:51 2002 +0000 @@ -70,8 +70,7 @@ fr->lay = 4-((newhead>>17)&3); if( ((newhead>>10)&0x3) == 0x3) { - Sound_SetError("MPGLIB: Corrupted header"); - return 0; + BAIL_MACRO("MPGLIB: Corrupted header", 0); } if(fr->mpeg25) { fr->sampling_frequency = 6 + ((newhead>>10)&0x3); @@ -96,8 +95,7 @@ if(!fr->bitrate_index) { - Sound_SetError("MPGLIB: Free format not supported."); - return (0); + BAIL_MACRO("MPGLIB: Free format not supported.", 0); } switch(fr->lay) @@ -112,7 +110,7 @@ fr->framesize /= mpglib_freqs[fr->sampling_frequency]; fr->framesize = ((fr->framesize+fr->padding)<<2)-4; #else - Sound_SetError("MPGLIB: Not supported!"); + __Sound_SetError("MPGLIB: Not supported!"); #endif break; case 2: @@ -125,7 +123,7 @@ fr->framesize /= mpglib_freqs[fr->sampling_frequency]; fr->framesize += fr->padding - 4; #else - Sound_SetError("MPGLIB: Not supported!"); + __Sound_SetError("MPGLIB: Not supported!"); #endif break; case 3: @@ -146,8 +144,7 @@ fr->framesize = fr->framesize + fr->padding - 4; break; default: - Sound_SetError("MPGLIB: Unknown layer type."); - return (0); + BAIL_MACRO("MPGLIB: Unknown layer type.", 0); } return 1; }