Mercurial > SDL_sound_CoreAudio
diff decoders/aiff.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 | 9d0b5ec9cc26 |
line wrap: on
line diff
--- a/decoders/aiff.c Fri Jul 05 22:34:55 2002 +0000 +++ b/decoders/aiff.c Fri Jul 05 23:11:51 2002 +0000 @@ -441,8 +441,7 @@ default: SNDDBG(("AIFF: Format %lu is unknown.\n", (unsigned int) fmt->type)); - Sound_SetError("AIFF: Unsupported format"); - return(0); /* not supported whatsoever. */ + BAIL_MACRO("AIFF: Unsupported format", 0); } /* switch */ assert(0); /* shouldn't hit this point. */ @@ -508,16 +507,14 @@ if (!find_chunk(rw, ssndID)) { - Sound_SetError("AIFF: No sound data chunk."); free(a); - return(0); + BAIL_MACRO("AIFF: No sound data chunk.", 0); } /* if */ if (!read_ssnd_chunk(rw, &s)) { - Sound_SetError("AIFF: Can't read sound data chunk."); free(a); - return(0); + BAIL_MACRO("AIFF: Can't read sound data chunk.", 0); } /* if */ a->fmt.total_bytes = a->bytesLeft = bytes_per_sample * c.numSampleFrames;