diff decoders/wav.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 170b1400e060
children eb7c929193dd
line wrap: on
line diff
--- a/decoders/wav.c	Sun Apr 21 17:48:11 2002 +0000
+++ b/decoders/wav.c	Sun Apr 21 18:39:47 2002 +0000
@@ -50,6 +50,7 @@
 static void WAV_close(Sound_Sample *sample);
 static Uint32 WAV_read(Sound_Sample *sample);
 static int WAV_rewind(Sound_Sample *sample);
+static int WAV_seek(Sound_Sample *sample, Uint32 ms);
 
 static const char *extensions_wav[] = { "WAV", NULL };
 const Sound_DecoderFunctions __Sound_DecoderFunctions_WAV =
@@ -66,7 +67,8 @@
     WAV_open,       /*   open() method */
     WAV_close,      /*  close() method */
     WAV_read,       /*   read() method */
-    WAV_rewind      /* rewind() method */
+    WAV_rewind,     /* rewind() method */
+    WAV_seek        /*   seek() method */
 };
 
 
@@ -719,6 +721,12 @@
     return(fmt->rewind_sample(sample));
 } /* WAV_rewind */
 
+
+static int WAV_seek(Sound_Sample *sample, Uint32 ms)
+{
+    BAIL_MACRO("!!! FIXME: Not implemented", 0);
+} /* WAV_seek */
+
 #endif /* SOUND_SUPPORTS_WAV */
 
 /* end of wav.c ... */