Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

More streamer work.

  • Loading branch information
schnarf committed Aug 12, 2008
1 parent e54703b commit 96735b8958e9d27d894fd7a7feef0d83ced4e060

File 3 of 3 in 96735b8

@@ -68,6 +68,14 @@ typedef struct SDL_AudioDriver
SDL_AudioDriverImpl impl;
} SDL_AudioDriver;

/* Streamer */
typedef struct
{
Uint8 *buffer;
int max_len; /* the maximum length in bytes */
int read_pos, write_pos; /* the position of the write and read heads in bytes */
} SDL_AudioStreamer;


/* Define the SDL audio driver structure */
struct SDL_AudioDevice
@@ -80,6 +88,10 @@ struct SDL_AudioDevice

/* An audio conversion block for audio format emulation */
SDL_AudioCVT convert;

/* The streamer, if sample rate conversion necessitates it */
int use_streamer;
SDL_AudioStreamer streamer;

/* Current state flags */
int iscapture;

0 comments on commit 96735b8

Please sign in to comment.