comparison decoders/raw.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 50bb9a6cebfe
comparison
equal deleted inserted replaced
386:8c8ecd1008c9 387:fb519e6028e3
98 /* 98 /*
99 * We check this explicitly, since we have no other way to 99 * We check this explicitly, since we have no other way to
100 * determine whether we should handle this data or not. 100 * determine whether we should handle this data or not.
101 */ 101 */
102 if (__Sound_strcasecmp(ext, "RAW") != 0) 102 if (__Sound_strcasecmp(ext, "RAW") != 0)
103 { 103 BAIL_MACRO("RAW: extension isn't explicitly \"RAW\".", 0);
104 Sound_SetError("RAW: extension isn't explicitly \"RAW\".");
105 return(0);
106 } /* if */
107 104
108 /* 105 /*
109 * You must also specify a desired format, so we know how to 106 * You must also specify a desired format, so we know how to
110 * treat the bits that are otherwise binary garbage. 107 * treat the bits that are otherwise binary garbage.
111 */ 108 */
112 if ( (sample->desired.channels < 1) || 109 if ( (sample->desired.channels < 1) ||
113 (sample->desired.channels > 2) || 110 (sample->desired.channels > 2) ||
114 (sample->desired.rate == 0) || 111 (sample->desired.rate == 0) ||
115 (sample->desired.format == 0) ) 112 (sample->desired.format == 0) )
116 { 113 {
117 Sound_SetError("RAW: invalid desired format."); 114 BAIL_MACRO("RAW: invalid desired format.", 0);
118 return(0);
119 } /* if */ 115 } /* if */
120 116
121 SNDDBG(("RAW: Accepting data stream.\n")); 117 SNDDBG(("RAW: Accepting data stream.\n"));
122 118
123 /* 119 /*