diff decoders/flac.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/flac.c	Sun Apr 21 17:48:11 2002 +0000
+++ b/decoders/flac.c	Sun Apr 21 18:39:47 2002 +0000
@@ -60,6 +60,7 @@
 static void FLAC_close(Sound_Sample *sample);
 static Uint32 FLAC_read(Sound_Sample *sample);
 static int FLAC_rewind(Sound_Sample *sample);
+static int FLAC_seek(Sound_Sample *sample, Uint32 ms);
 
 static const char *extensions_flac[] = { "FLAC", "FLA", NULL };
 
@@ -77,7 +78,8 @@
     FLAC_open,       /*   open() method */
     FLAC_close,      /*  close() method */
     FLAC_read,       /*   read() method */
-    FLAC_rewind      /* rewind() method */
+    FLAC_rewind,     /* rewind() method */
+    FLAC_seek        /*   seek() method */
 };
 
     /* This is what we store in our internal->decoder_private field. */
@@ -390,6 +392,13 @@
     return(1);
 } /* FLAC_rewind */
 
+
+static int FLAC_seek(Sound_Sample *sample, Uint32 ms)
+{
+    BAIL_MACRO("!!! FIXME: Not implemented", 0);
+} /* FLAC_seek */
+
+
 #endif /* SOUND_SUPPORTS_FLAC */