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