# HG changeset patch # User Ryan C. Gordon # Date 1000810831 0 # Node ID 2888101dcf98d253f2f3432cfddc43a359834cb0 # Parent 5ff1dce70aec96c5a08522bf7f8b0de122067e0d Added _D(()) macro, decoder_private field, and changed read() method from returning an (int) to returning a (Uint32). diff -r 5ff1dce70aec -r 2888101dcf98 SDL_sound_internal.h --- 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;