diff 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
line wrap: on
line diff
--- a/include/SDL_audio.h	Sun Oct 01 05:21:40 2006 +0000
+++ b/include/SDL_audio.h	Sun Oct 01 05:24:03 2006 +0000
@@ -212,7 +212,7 @@
  * may modify the requested size of the audio buffer, you should allocate
  * any local mixing buffers after you open the audio device.
  */
-extern DECLSPEC int SDLCALL SDL_OpenAudio(SDL_AudioSpec * desired,
+extern DECLSPEC int SDLCALL SDL_OpenAudio(const SDL_AudioSpec * desired,
                                           SDL_AudioSpec * obtained);
 
 /*
@@ -243,7 +243,8 @@
 /*
  * Open a specific audio device. Passing in a device name of NULL is
  *  equivalent to SDL_OpenAudio(). Returns 0 on error, a valid device ID
- *  on success.
+ *  on success. SDL_OpenAudio(), unlike this function, always acts on device
+ *  ID 1.
  */
 extern DECLSPEC SDL_AudioDeviceID SDLCALL SDL_OpenAudioDevice(const char
                                                               *device,