Skip to content

Commit

Permalink
Added _D(()) macro, decoder_private field, and changed read() method …
Browse files Browse the repository at this point in the history
…from

 returning an (int) to returning a (Uint32).
  • Loading branch information
icculus committed Sep 18, 2001
1 parent e8d846c commit b3e55e8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion SDL_sound_internal.h
Expand Up @@ -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. */
Expand Down Expand Up @@ -68,6 +74,7 @@ typedef struct __SOUND_DECODERFUNCTIONS__
* 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)
Expand Down Expand Up @@ -124,7 +131,7 @@ typedef struct __SOUND_DECODERFUNCTIONS__
* SOUND_SAMPLEFLAG_EAGAIN flag is reset before each call to this
* method.
*/
int (*read)(Sound_Sample *sample);
Uint32 (*read)(Sound_Sample *sample);
} Sound_DecoderFunctions;


Expand All @@ -137,6 +144,7 @@ typedef struct __SOUND_SAMPLEINTERNAL__
SDL_AudioCVT sdlcvt;
void *buffer;
Uint32 buffer_size;
void *decoder_private;
} Sound_SampleInternal;


Expand Down

0 comments on commit b3e55e8

Please sign in to comment.