comparison decoders/ogg.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 47cc2de2ae36
children d3dc34315ac7
comparison
equal deleted inserted replaced
220:ef72f3c490e7 221:c9772a9f5271
56 static int OGG_init(void); 56 static int OGG_init(void);
57 static void OGG_quit(void); 57 static void OGG_quit(void);
58 static int OGG_open(Sound_Sample *sample, const char *ext); 58 static int OGG_open(Sound_Sample *sample, const char *ext);
59 static void OGG_close(Sound_Sample *sample); 59 static void OGG_close(Sound_Sample *sample);
60 static Uint32 OGG_read(Sound_Sample *sample); 60 static Uint32 OGG_read(Sound_Sample *sample);
61 static int OGG_rewind(Sound_Sample *sample);
61 62
62 static const char *extensions_ogg[] = { "OGG", NULL }; 63 static const char *extensions_ogg[] = { "OGG", NULL };
63 const Sound_DecoderFunctions __Sound_DecoderFunctions_OGG = 64 const Sound_DecoderFunctions __Sound_DecoderFunctions_OGG =
64 { 65 {
65 { 66 {
67 "Ogg Vorbis audio through VorbisFile", 68 "Ogg Vorbis audio through VorbisFile",
68 "Ryan C. Gordon <icculus@clutteredmind.org>", 69 "Ryan C. Gordon <icculus@clutteredmind.org>",
69 "http://www.icculus.org/SDL_sound/" 70 "http://www.icculus.org/SDL_sound/"
70 }, 71 },
71 72
72 OGG_init, /* init() method */ 73 OGG_init, /* init() method */
73 OGG_quit, /* quit() method */ 74 OGG_quit, /* quit() method */
74 OGG_open, /* open() method */ 75 OGG_open, /* open() method */
75 OGG_close, /* close() method */ 76 OGG_close, /* close() method */
76 OGG_read /* read() method */ 77 OGG_read, /* read() method */
78 OGG_rewind /* rewind() method */
77 }; 79 };
78 80
79 81
80 static int OGG_init(void) 82 static int OGG_init(void)
81 { 83 {
261 sample->flags |= SOUND_SAMPLEFLAG_EAGAIN; 263 sample->flags |= SOUND_SAMPLEFLAG_EAGAIN;
262 264
263 return((Uint32) rc); 265 return((Uint32) rc);
264 } /* OGG_read */ 266 } /* OGG_read */
265 267
268
269 static int OGG_rewind(Sound_Sample *sample)
270 {
271 /* !!! FIXME. */
272 SNDDBG(("OGG_rewind(): Write me!\n"));
273 assert(0);
274 return(0);
275 } /* OGG_rewind */
276
266 #endif /* SOUND_SUPPORTS_OGG */ 277 #endif /* SOUND_SUPPORTS_OGG */
267 278
268 279
269 /* end of ogg.c ... */ 280 /* end of ogg.c ... */
270 281