Mercurial > SDL_sound_CoreAudio
comparison decoders/ogg.c @ 306:c97be6e1bd27
Added framework for Sound_Seek() support.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sun, 21 Apr 2002 18:39:47 +0000 |
parents | d3dc34315ac7 |
children | aa7f6a110971 |
comparison
equal
deleted
inserted
replaced
305:c345a40a8a99 | 306:c97be6e1bd27 |
---|---|
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 static int OGG_rewind(Sound_Sample *sample); |
62 static int OGG_seek(Sound_Sample *sample, Uint32 ms); | |
62 | 63 |
63 static const char *extensions_ogg[] = { "OGG", NULL }; | 64 static const char *extensions_ogg[] = { "OGG", NULL }; |
64 const Sound_DecoderFunctions __Sound_DecoderFunctions_OGG = | 65 const Sound_DecoderFunctions __Sound_DecoderFunctions_OGG = |
65 { | 66 { |
66 { | 67 { |
73 OGG_init, /* init() method */ | 74 OGG_init, /* init() method */ |
74 OGG_quit, /* quit() method */ | 75 OGG_quit, /* quit() method */ |
75 OGG_open, /* open() method */ | 76 OGG_open, /* open() method */ |
76 OGG_close, /* close() method */ | 77 OGG_close, /* close() method */ |
77 OGG_read, /* read() method */ | 78 OGG_read, /* read() method */ |
78 OGG_rewind /* rewind() method */ | 79 OGG_rewind, /* rewind() method */ |
80 OGG_seek /* seek() method */ | |
79 }; | 81 }; |
80 | 82 |
81 | 83 |
82 static int OGG_init(void) | 84 static int OGG_init(void) |
83 { | 85 { |
273 | 275 |
274 BAIL_IF_MACRO(ov_raw_seek(vf, 0) < 0, ERR_IO_ERROR, 0); | 276 BAIL_IF_MACRO(ov_raw_seek(vf, 0) < 0, ERR_IO_ERROR, 0); |
275 return(1); | 277 return(1); |
276 } /* OGG_rewind */ | 278 } /* OGG_rewind */ |
277 | 279 |
280 | |
281 static int OGG_seek(Sound_Sample *sample, Uint32 ms) | |
282 { | |
283 BAIL_MACRO("!!! FIXME: Not implemented", 0); | |
284 } /* OGG_seek */ | |
285 | |
278 #endif /* SOUND_SUPPORTS_OGG */ | 286 #endif /* SOUND_SUPPORTS_OGG */ |
279 | 287 |
280 | 288 |
281 /* end of ogg.c ... */ | 289 /* end of ogg.c ... */ |
282 | 290 |