diff src/audio/SDL_audio_c.h @ 2664:344c8da164f4 gsoc2008_audio_resampling

Added streamer code. I haven't yet incorporated it into SDL_RunAudio() though.
author Aaron Wishnick <schnarf@gmail.com>
date Tue, 12 Aug 2008 00:50:58 +0000
parents 3b4ce57c6215
children f39a056aec8b
line wrap: on
line diff
--- a/src/audio/SDL_audio_c.h	Tue Aug 12 00:24:42 2008 +0000
+++ b/src/audio/SDL_audio_c.h	Tue Aug 12 00:50:58 2008 +0000
@@ -42,4 +42,12 @@
 } SDL_AudioTypeFilters;
 extern const SDL_AudioTypeFilters sdl_audio_type_filters[];
 
+/* 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;
+
 /* vi: set ts=4 sw=4 expandtab: */