comparison decoders/mikmod.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 c345a40a8a99
comparison
equal deleted inserted replaced
230:aa4137f121e4 231:d3dc34315ac7
285 } /* MIKMOD_read */ 285 } /* MIKMOD_read */
286 286
287 287
288 static int MIKMOD_rewind(Sound_Sample *sample) 288 static int MIKMOD_rewind(Sound_Sample *sample)
289 { 289 {
290 /* !!! FIXME. */ 290 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque;
291 SNDDBG(("MIKMOD_rewind(): Write me!\n")); 291 MODULE *module = (MODULE *) internal->decoder_private;
292 assert(0); 292
293 return(0); 293 Player_Start(module);
294 Player_SetPosition(0);
295 return(1);
294 } /* MIKMOD_rewind */ 296 } /* MIKMOD_rewind */
295 297
296 298
297 299
298 #endif /* SOUND_SUPPORTS_MIKMOD */ 300 #endif /* SOUND_SUPPORTS_MIKMOD */