comparison include/SDL_audio.h @ 3784:37c9c4590689 SDL-ryan-multiple-audio-device

First batch of heavy lifting on supporting multiple audio devices at once. This has a long way to go yet, most of the drivers aren't updated for the new interfaces, and it's still got some obvious bugs, FIXMEs, and wistlist items. Don't use yet.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 01 Oct 2006 05:24:03 +0000
parents 8055185ae4ed
children 8f8209f8da6d
comparison
equal deleted inserted replaced
3783:dc3870a3f30d 3784:37c9c4590689
210 * be enabled for playing by calling SDL_PauseAudio(0) when you are ready 210 * be enabled for playing by calling SDL_PauseAudio(0) when you are ready
211 * for your audio callback function to be called. Since the audio driver 211 * for your audio callback function to be called. Since the audio driver
212 * may modify the requested size of the audio buffer, you should allocate 212 * may modify the requested size of the audio buffer, you should allocate
213 * any local mixing buffers after you open the audio device. 213 * any local mixing buffers after you open the audio device.
214 */ 214 */
215 extern DECLSPEC int SDLCALL SDL_OpenAudio(SDL_AudioSpec * desired, 215 extern DECLSPEC int SDLCALL SDL_OpenAudio(const SDL_AudioSpec * desired,
216 SDL_AudioSpec * obtained); 216 SDL_AudioSpec * obtained);
217 217
218 /* 218 /*
219 * SDL Audio Device IDs. 219 * SDL Audio Device IDs.
220 * A successful call to SDL_OpenAudio() is always device id 1, and legacy 220 * A successful call to SDL_OpenAudio() is always device id 1, and legacy
241 241
242 242
243 /* 243 /*
244 * Open a specific audio device. Passing in a device name of NULL is 244 * Open a specific audio device. Passing in a device name of NULL is
245 * equivalent to SDL_OpenAudio(). Returns 0 on error, a valid device ID 245 * equivalent to SDL_OpenAudio(). Returns 0 on error, a valid device ID
246 * on success. 246 * on success. SDL_OpenAudio(), unlike this function, always acts on device
247 * ID 1.
247 */ 248 */
248 extern DECLSPEC SDL_AudioDeviceID SDLCALL SDL_OpenAudioDevice(const char 249 extern DECLSPEC SDL_AudioDeviceID SDLCALL SDL_OpenAudioDevice(const char
249 *device, 250 *device,
250 int iscapture, 251 int iscapture,
251 const 252 const