comparison decoders/modplug.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
235 } /* MODPLUG_read */ 235 } /* MODPLUG_read */
236 236
237 237
238 static int MODPLUG_rewind(Sound_Sample *sample) 238 static int MODPLUG_rewind(Sound_Sample *sample)
239 { 239 {
240 /* !!! FIXME. */ 240 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque;
241 SNDDBG(("MODPLUG_rewind(): Write me!\n")); 241 ModPlugFile *module = (ModPlugFile *) internal->decoder_private;
242 assert(0); 242
243 return(0); 243 ModPlug_Seek(module, 0);
244 return(1);
244 } /* MODPLUG_rewind */ 245 } /* MODPLUG_rewind */
245 246
246 #endif /* SOUND_SUPPORTS_MODPLUG */ 247 #endif /* SOUND_SUPPORTS_MODPLUG */
247 248
248 249