diff decoders/ogg.c @ 221:c9772a9f5271

Initial implementation or stubs for rewind method. Other cleanups.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 17 Jan 2002 20:53:53 +0000
parents 47cc2de2ae36
children d3dc34315ac7
line wrap: on
line diff
--- a/decoders/ogg.c	Thu Jan 17 20:53:03 2002 +0000
+++ b/decoders/ogg.c	Thu Jan 17 20:53:53 2002 +0000
@@ -58,6 +58,7 @@
 static int OGG_open(Sound_Sample *sample, const char *ext);
 static void OGG_close(Sound_Sample *sample);
 static Uint32 OGG_read(Sound_Sample *sample);
+static int OGG_rewind(Sound_Sample *sample);
 
 static const char *extensions_ogg[] = { "OGG", NULL };
 const Sound_DecoderFunctions __Sound_DecoderFunctions_OGG =
@@ -69,11 +70,12 @@
         "http://www.icculus.org/SDL_sound/"
     },
 
-    OGG_init,       /*  init() method */
-    OGG_quit,       /*  quit() method */
-    OGG_open,       /*  open() method */
-    OGG_close,      /* close() method */
-    OGG_read        /*  read() method */
+    OGG_init,       /*   init() method */
+    OGG_quit,       /*   quit() method */
+    OGG_open,       /*   open() method */
+    OGG_close,      /*  close() method */
+    OGG_read,       /*   read() method */
+    OGG_rewind      /* rewind() method */
 };
 
 
@@ -263,6 +265,15 @@
     return((Uint32) rc);
 } /* OGG_read */
 
+
+static int OGG_rewind(Sound_Sample *sample)
+{
+    /* !!! FIXME. */
+    SNDDBG(("OGG_rewind(): Write me!\n"));
+    assert(0);
+    return(0);
+} /* OGG_rewind */
+
 #endif /* SOUND_SUPPORTS_OGG */