src/audio/SDL_sysaudio.h
branchgsoc2008_audio_resampling
changeset 2665 f39a056aec8b
parent 2060 866052b01ee5
child 2666 e12ccc6c9576
--- a/src/audio/SDL_sysaudio.h	Tue Aug 12 00:50:58 2008 +0000
+++ b/src/audio/SDL_sysaudio.h	Tue Aug 12 01:03:05 2008 +0000
@@ -68,6 +68,14 @@
     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 @@
 
     /* 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;