diff SDL_sound_internal.h @ 485:137c0b00ea4c

Added Sound_NewSampleFromMem(), and implementation of RWops pooling.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 27 Feb 2005 19:53:25 +0000
parents 9e761a594df1
children 2df1f5c62d38
line wrap: on
line diff
--- a/SDL_sound_internal.h	Sun Feb 27 19:50:54 2005 +0000
+++ b/SDL_sound_internal.h	Sun Feb 27 19:53:25 2005 +0000
@@ -65,6 +65,14 @@
 #endif
 
 
+/*
+ * SDL itself only supports mono and stereo output, but hopefully we can
+ *  raise this value someday...there's probably a lot of assumptions in
+ *  SDL_sound that rely on it, though.
+ */
+#define MAX_CHANNELS 2
+
+
 typedef struct __SOUND_DECODERFUNCTIONS__
 {
         /* This is a block of info about your decoder. See SDL_sound.h. */
@@ -240,6 +248,7 @@
 extern SNDDECLSPEC int Sound_ConvertAudio(Sound_AudioCVT *cvt);
 
 
+typedef void (*MixFunc)(float *dst, void *src, Uint32 frames, float *gains);
 
 typedef struct __SOUND_SAMPLEINTERNAL__
 {
@@ -252,6 +261,8 @@
     Uint32 buffer_size;
     void *decoder_private;
     Sint32 total_time;
+    Uint32 mix_position;
+    MixFunc mix;
 } Sound_SampleInternal;