Mercurial > SDL_sound_CoreAudio
comparison SDL_sound_internal.h @ 39:eeb874083218
Temporary addition of multiple-streams-in-one-RWops support.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 20 Sep 2001 07:57:29 +0000 |
parents | 2888101dcf98 |
children | 2b63642fb6ff |
comparison
equal
deleted
inserted
replaced
38:9950943545c4 | 39:eeb874083218 |
---|---|
133 */ | 133 */ |
134 Uint32 (*read)(Sound_Sample *sample); | 134 Uint32 (*read)(Sound_Sample *sample); |
135 } Sound_DecoderFunctions; | 135 } Sound_DecoderFunctions; |
136 | 136 |
137 | 137 |
138 /* (for now. --ryan.) */ | |
139 #define MULTIPLE_STREAMS_PER_RWOPS 1 | |
140 | |
141 | |
142 | |
138 typedef struct __SOUND_SAMPLEINTERNAL__ | 143 typedef struct __SOUND_SAMPLEINTERNAL__ |
139 { | 144 { |
140 Sound_Sample *next; | 145 Sound_Sample *next; |
141 Sound_Sample *prev; | 146 Sound_Sample *prev; |
142 SDL_RWops *rw; | 147 SDL_RWops *rw; |
148 #if (defined MULTIPLE_STREAMS_PER_RWOPS) | |
149 int pos; /* !!! FIXME: Int? Really? */ | |
150 #endif | |
143 const Sound_DecoderFunctions *funcs; | 151 const Sound_DecoderFunctions *funcs; |
144 SDL_AudioCVT sdlcvt; | 152 SDL_AudioCVT sdlcvt; |
145 void *buffer; | 153 void *buffer; |
146 Uint32 buffer_size; | 154 Uint32 buffer_size; |
147 void *decoder_private; | 155 void *decoder_private; |