Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
icculus committed Oct 1, 2006
1 parent c050492 commit 3bfd5cd
Show file tree
Hide file tree
Showing 10 changed files with 632 additions and 510 deletions.
5 changes: 3 additions & 2 deletions include/SDL_audio.h
Expand Up @@ -212,7 +212,7 @@ extern DECLSPEC const char *SDLCALL SDL_GetCurrentAudioDriver(void);
* 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);

/*
Expand Down Expand Up @@ -243,7 +243,8 @@ extern DECLSPEC const char *SDLCALL SDL_GetAudioDevice(int index,
/*
* 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,
Expand Down

0 comments on commit 3bfd5cd

Please sign in to comment.