diff decoders/aiff.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 c9772a9f5271
children 8ba541e81c1e
line wrap: on
line diff
--- a/decoders/aiff.c	Sun Apr 21 17:48:11 2002 +0000
+++ b/decoders/aiff.c	Sun Apr 21 18:39:47 2002 +0000
@@ -66,6 +66,7 @@
 static void AIFF_close(Sound_Sample *sample);
 static Uint32 AIFF_read(Sound_Sample *sample);
 static int AIFF_rewind(Sound_Sample *sample);
+static int AIFF_seek(Sound_Sample *sample, Uint32 ms);
 
 static const char *extensions_aiff[] = { "AIFF", NULL };
 const Sound_DecoderFunctions __Sound_DecoderFunctions_AIFF =
@@ -82,7 +83,8 @@
     AIFF_open,      /*   open() method */
     AIFF_close,     /*  close() method */
     AIFF_read,      /*   read() method */
-    AIFF_rewind     /* rewind() method */
+    AIFF_rewind,    /* rewind() method */
+    AIFF_seek       /*   seek() method */
 };
 
 
@@ -520,7 +522,7 @@
     aiff_t *a = (aiff_t *) internal->decoder_private;
     a->fmt.free(&(a->fmt));
     free(a);
-} /* WAV_close */
+} /* AIFF_close */
 
 
 static Uint32 AIFF_read(Sound_Sample *sample)
@@ -542,6 +544,12 @@
     return(fmt->rewind_sample(sample));
 } /* AIFF_rewind */
 
+
+static int AIFF_seek(Sound_Sample *sample, Uint32 ms)
+{
+    BAIL_MACRO("!!! FIXME: Not implemented", 0);
+} /* AIFF_seek */
+
 #endif /* SOUND_SUPPORTS_AIFF */
 
 /* end of aiff.c ... */