diff decoders/skeleton.c @ 47:ea58bc3b15d7

Added init() and quit() methods.
author Ryan C. Gordon <icculus@icculus.org>
date Sat, 22 Sep 2001 14:41:38 +0000
parents d9b9d60cf9a9
children b13fafb976be
line wrap: on
line diff
--- a/decoders/skeleton.c	Sat Sep 22 14:41:10 2001 +0000
+++ b/decoders/skeleton.c	Sat Sep 22 14:41:38 2001 +0000
@@ -43,6 +43,8 @@
 #endif
 
 
+static int FMT_init(void);
+static void FMT_quit(void);
 static int FMT_open(Sound_Sample *sample, const char *ext);
 static void FMT_close(Sound_Sample *sample);
 static Uint32 FMT_read(Sound_Sample *sample);
@@ -56,12 +58,28 @@
         "http://www.icculus.org/SDL_sound/"
     },
 
+    FMT_init,       /* init() method       */
+    FMT_quit,       /* quit() method       */
     FMT_open,       /* open() method       */
     FMT_close,      /* close() method       */
     FMT_read        /* read() method       */
 };
 
 
+static int FMT_init(void)
+{
+    /* do any global decoder/library initialization you need here. */
+
+    return(1);  /* initialization successful. */
+} /* FMT_init */
+
+
+static void FMT_quit(void)
+{
+    /* do any global decoder/library cleanup you need here. */
+} /* FMT_quit */
+
+
 static int FMT_open(Sound_Sample *sample, const char *ext)
 {
     Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque;