Mercurial > SDL_sound_CoreAudio
comparison decoders/skeleton.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 | 50bb9a6cebfe |
comparison
equal
deleted
inserted
replaced
386:8c8ecd1008c9 | 387:fb519e6028e3 |
---|---|
98 { | 98 { |
99 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; | 99 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; |
100 SDL_RWops *rw = internal->rw; | 100 SDL_RWops *rw = internal->rw; |
101 | 101 |
102 if (can NOT accept the data) | 102 if (can NOT accept the data) |
103 { | 103 BAIL_MACRO("FMT: expected X, got Y.", 0); |
104 Sound_SetError("FMT: expected X, got Y."); | |
105 return(0); | |
106 } /* if */ | |
107 | 104 |
108 SNDDBG(("FMT: Accepting data stream.\n")); | 105 SNDDBG(("FMT: Accepting data stream.\n")); |
109 set up sample->actual; | 106 set up sample->actual; |
110 sample->flags = SOUND_SAMPLEFLAG_NONE; | 107 sample->flags = SOUND_SAMPLEFLAG_NONE; |
111 return(1); /* we'll handle this data. */ | 108 return(1); /* we'll handle this data. */ |