diff decoders/modplug.c @ 306:c97be6e1bd27

Added framework for Sound_Seek() support.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 21 Apr 2002 18:39:47 +0000
parents d3dc34315ac7
children 498240aa76f1
line wrap: on
line diff
--- a/decoders/modplug.c	Sun Apr 21 17:48:11 2002 +0000
+++ b/decoders/modplug.c	Sun Apr 21 18:39:47 2002 +0000
@@ -50,6 +50,7 @@
 static void MODPLUG_close(Sound_Sample *sample);
 static Uint32 MODPLUG_read(Sound_Sample *sample);
 static int MODPLUG_rewind(Sound_Sample *sample);
+static int MODPLUG_seek(Sound_Sample *sample, Uint32 ms);
 
 static const char *extensions_modplug[] =
 {
@@ -97,7 +98,8 @@
     MODPLUG_open,       /*   open() method */
     MODPLUG_close,      /*  close() method */
     MODPLUG_read,       /*   read() method */
-    MODPLUG_rewind      /* rewind() method */
+    MODPLUG_rewind,     /* rewind() method */
+    MODPLUG_seek        /*   seek() method */
 };
 
 
@@ -244,6 +246,12 @@
     return(1);
 } /* MODPLUG_rewind */
 
+
+static int MODPLUG_seek(Sound_Sample *sample, Uint32 ms)
+{
+    BAIL_MACRO("!!! FIXME: Not implemented", 0);
+} /* MODPLUG_seek */
+
 #endif /* SOUND_SUPPORTS_MODPLUG */