Mercurial > SDL_sound_CoreAudio
comparison decoders/mpglib.c @ 358:f11c10ffa31a
Fixed some debug messages.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 11 Jun 2002 23:33:02 +0000 |
parents | 069ce624d6cf |
children | cbb15ecf423a |
comparison
equal
deleted
inserted
replaced
357:b3ac77d08e79 | 358:f11c10ffa31a |
---|---|
137 if (__Sound_strcasecmp(ext, "MP3") != 0) | 137 if (__Sound_strcasecmp(ext, "MP3") != 0) |
138 { | 138 { |
139 Uint8 mp3_magic[2]; | 139 Uint8 mp3_magic[2]; |
140 | 140 |
141 if (SDL_RWread(internal->rw, mp3_magic, sizeof (mp3_magic), 1) != 1) | 141 if (SDL_RWread(internal->rw, mp3_magic, sizeof (mp3_magic), 1) != 1) |
142 BAIL_MACRO("MP3: Could not read MP3 magic.", 0); | 142 BAIL_MACRO("MPGLIB: Could not read MP3 magic.", 0); |
143 | 143 |
144 if (mp3_magic[0] != 0xFF || (mp3_magic[1] & 0xF0) != 0xF0) | 144 if (mp3_magic[0] != 0xFF || (mp3_magic[1] & 0xF0) != 0xF0) |
145 BAIL_MACRO("MP3: Not an MP3 stream.", 0); | 145 BAIL_MACRO("MPGLIB: Not an MP3 stream.", 0); |
146 | 146 |
147 /* If the seek fails, we'll probably miss a frame, but oh well. */ | 147 /* If the seek fails, we'll probably miss a frame, but oh well. */ |
148 SDL_RWseek(internal->rw, -sizeof (mp3_magic), SEEK_CUR); | 148 SDL_RWseek(internal->rw, -sizeof (mp3_magic), SEEK_CUR); |
149 } /* if */ | 149 } /* if */ |
150 | 150 |