diff 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
line wrap: on
line diff
--- a/decoders/mikmod.c	Sat Jan 19 03:11:26 2002 +0000
+++ b/decoders/mikmod.c	Sat Jan 19 16:58:34 2002 +0000
@@ -287,10 +287,12 @@
 
 static int MIKMOD_rewind(Sound_Sample *sample)
 {
-    /* !!! FIXME. */
-    SNDDBG(("MIKMOD_rewind(): Write me!\n"));
-    assert(0);
-    return(0);
+    Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque;
+    MODULE *module = (MODULE *) internal->decoder_private;
+
+    Player_Start(module);
+    Player_SetPosition(0);
+    return(1);
 } /* MIKMOD_rewind */