diff decoders/shn.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 ca43129df299
children 069ce624d6cf
line wrap: on
line diff
--- a/decoders/shn.c	Sun Apr 21 17:48:11 2002 +0000
+++ b/decoders/shn.c	Sun Apr 21 18:39:47 2002 +0000
@@ -63,6 +63,7 @@
 static void SHN_close(Sound_Sample *sample);
 static Uint32 SHN_read(Sound_Sample *sample);
 static int SHN_rewind(Sound_Sample *sample);
+static int SHN_seek(Sound_Sample *sample, Uint32 ms);
 
 static const char *extensions_shn[] = { "SHN", NULL };
 const Sound_DecoderFunctions __Sound_DecoderFunctions_SHN =
@@ -79,7 +80,8 @@
     SHN_open,       /*   open() method */
     SHN_close,      /*  close() method */
     SHN_read,       /*   read() method */
-    SHN_rewind      /* rewind() method */
+    SHN_rewind,     /* rewind() method */
+    SHN_seek        /*   seek() method */
 };
 
 
@@ -1322,6 +1324,13 @@
 #endif
 } /* SHN_rewind */
 
+
+static int SHN_seek(Sound_Sample *sample, Uint32 ms)
+{
+    BAIL_MACRO("!!! FIXME: Not implemented", 0);
+} /* SHN_seek */
+
+
 #endif  /* defined SOUND_SUPPORTS_SHN */
 
 /* end of shn.c ... */