Mercurial > SDL_sound_CoreAudio
comparison decoders/mp3.c @ 221:c9772a9f5271
Initial implementation or stubs for rewind method. Other cleanups.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 17 Jan 2002 20:53:53 +0000 |
parents | 5b311ffabe45 |
children | d3dc34315ac7 |
comparison
equal
deleted
inserted
replaced
220:ef72f3c490e7 | 221:c9772a9f5271 |
---|---|
54 static int MP3_init(void); | 54 static int MP3_init(void); |
55 static void MP3_quit(void); | 55 static void MP3_quit(void); |
56 static int MP3_open(Sound_Sample *sample, const char *ext); | 56 static int MP3_open(Sound_Sample *sample, const char *ext); |
57 static void MP3_close(Sound_Sample *sample); | 57 static void MP3_close(Sound_Sample *sample); |
58 static Uint32 MP3_read(Sound_Sample *sample); | 58 static Uint32 MP3_read(Sound_Sample *sample); |
59 static int MP3_rewind(Sound_Sample *sample); | |
59 | 60 |
60 static const char *extensions_smpeg[] = { "MP3", "MPEG", "MPG", NULL }; | 61 static const char *extensions_smpeg[] = { "MP3", "MPEG", "MPG", NULL }; |
61 const Sound_DecoderFunctions __Sound_DecoderFunctions_MP3 = | 62 const Sound_DecoderFunctions __Sound_DecoderFunctions_MP3 = |
62 { | 63 { |
63 { | 64 { |
65 "MPEG-1 Layer 3 audio through SMPEG", | 66 "MPEG-1 Layer 3 audio through SMPEG", |
66 "Ryan C. Gordon <icculus@clutteredmind.org>", | 67 "Ryan C. Gordon <icculus@clutteredmind.org>", |
67 "http://www.lokigames.com/development/smpeg.php3" | 68 "http://www.lokigames.com/development/smpeg.php3" |
68 }, | 69 }, |
69 | 70 |
70 MP3_init, /* init() method */ | 71 MP3_init, /* init() method */ |
71 MP3_quit, /* quit() method */ | 72 MP3_quit, /* quit() method */ |
72 MP3_open, /* open() method */ | 73 MP3_open, /* open() method */ |
73 MP3_close, /* close() method */ | 74 MP3_close, /* close() method */ |
74 MP3_read /* read() method */ | 75 MP3_read, /* read() method */ |
76 MP3_rewind /* rewind() method */ | |
75 }; | 77 }; |
76 | 78 |
77 | 79 |
78 static int MP3_init(void) | 80 static int MP3_init(void) |
79 { | 81 { |
252 } /* if */ | 254 } /* if */ |
253 | 255 |
254 return(retval); | 256 return(retval); |
255 } /* MP3_read */ | 257 } /* MP3_read */ |
256 | 258 |
259 | |
260 static int MP3_rewind(Sound_Sample *sample) | |
261 { | |
262 /* !!! FIXME. */ | |
263 SNDDBG(("MP3_rewind(): Write me!\n")); | |
264 assert(0); | |
265 return(0); | |
266 } /* MP3_rewind */ | |
267 | |
257 #endif /* SOUND_SUPPORTS_MP3 */ | 268 #endif /* SOUND_SUPPORTS_MP3 */ |
258 | 269 |
259 /* end of mp3.c ... */ | 270 /* end of mp3.c ... */ |
260 | 271 |