diff SDL_sound_internal.h @ 12:2888101dcf98

Added _D(()) macro, decoder_private field, and changed read() method from returning an (int) to returning a (Uint32).
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 18 Sep 2001 11:00:31 +0000
parents 341cea3e13c6
children eeb874083218
line wrap: on
line diff
--- a/SDL_sound_internal.h	Tue Sep 18 10:59:31 2001 +0000
+++ b/SDL_sound_internal.h	Tue Sep 18 11:00:31 2001 +0000
@@ -35,6 +35,12 @@
 
 #include "SDL.h"
 
+#if (defined DEBUG_CHATTER)
+#define _D(x) printf x
+#else
+#define _D(x)
+#endif
+
 typedef struct __SOUND_DECODERFUNCTIONS__
 {
         /* This is a block of info about your decoder. See SDL_sound.h. */
@@ -68,6 +74,7 @@
          *    SDL_AudioCVT sdlcvt; (offlimits)
          *    void *buffer;        (offlimits until read() method)
          *    Uint32 buffer_size;  (offlimits until read() method)
+         *    void *decoder_private; (read and write access)
          *
          * in rest of Sound_Sample:
          *    void *opaque;        (this was internal section, above)
@@ -124,7 +131,7 @@
          *  SOUND_SAMPLEFLAG_EAGAIN flag is reset before each call to this
          *  method.
          */
-    int (*read)(Sound_Sample *sample);
+    Uint32 (*read)(Sound_Sample *sample);
 } Sound_DecoderFunctions;
 
 
@@ -137,6 +144,7 @@
     SDL_AudioCVT sdlcvt;
     void *buffer;
     Uint32 buffer_size;
+    void *decoder_private;
 } Sound_SampleInternal;