Mercurial > SDL_sound_CoreAudio
comparison decoders/ogg.c @ 231:d3dc34315ac7
Rewind method implemented by Torbj�rn.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sat, 19 Jan 2002 16:58:34 +0000 |
parents | c9772a9f5271 |
children | c97be6e1bd27 |
comparison
equal
deleted
inserted
replaced
230:aa4137f121e4 | 231:d3dc34315ac7 |
---|---|
266 } /* OGG_read */ | 266 } /* OGG_read */ |
267 | 267 |
268 | 268 |
269 static int OGG_rewind(Sound_Sample *sample) | 269 static int OGG_rewind(Sound_Sample *sample) |
270 { | 270 { |
271 /* !!! FIXME. */ | 271 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; |
272 SNDDBG(("OGG_rewind(): Write me!\n")); | 272 OggVorbis_File *vf = (OggVorbis_File *) internal->decoder_private; |
273 assert(0); | 273 |
274 return(0); | 274 BAIL_IF_MACRO(ov_raw_seek(vf, 0) < 0, ERR_IO_ERROR, 0); |
275 return(1); | |
275 } /* OGG_rewind */ | 276 } /* OGG_rewind */ |
276 | 277 |
277 #endif /* SOUND_SUPPORTS_OGG */ | 278 #endif /* SOUND_SUPPORTS_OGG */ |
278 | 279 |
279 | 280 |