include/SDL_audio.h
branchSDL-1.3
changeset 1660 8b9d79e7eacf
parent 1358 c71e05b4dc2e
child 1662 782fd950bd46
     1.1 --- a/include/SDL_audio.h	Wed May 17 08:18:28 2006 +0000
     1.2 +++ b/include/SDL_audio.h	Sat May 20 04:35:58 2006 +0000
     1.3 @@ -95,6 +95,12 @@
     1.4  
     1.5  /* Function prototypes */
     1.6  
     1.7 +/* These functions return the list of built in video drivers, in the 
     1.8 + * order that they are normally initialized by default.
     1.9 + */
    1.10 +extern DECLSPEC int SDLCALL SDL_GetNumAudioDrivers(void);
    1.11 +extern DECLSPEC const char * SDLCALL SDL_GetAudioDriver(int index);
    1.12 +
    1.13  /* These functions are used internally, and should not be used unless you
    1.14   * have a specific need to specify the audio driver you want to use.
    1.15   * You should normally use SDL_Init() or SDL_InitSubSystem().
    1.16 @@ -102,11 +108,10 @@
    1.17  extern DECLSPEC int SDLCALL SDL_AudioInit(const char *driver_name);
    1.18  extern DECLSPEC void SDLCALL SDL_AudioQuit(void);
    1.19  
    1.20 -/* This function fills the given character buffer with the name of the
    1.21 - * current audio driver, and returns a pointer to it if the audio driver has
    1.22 - * been initialized.  It returns NULL if no driver has been initialized.
    1.23 +/* This function returns the name of the current audio driver, or NULL
    1.24 + * if no driver has been initialized.
    1.25   */
    1.26 -extern DECLSPEC char * SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen);
    1.27 +extern DECLSPEC const char * SDLCALL SDL_GetCurrentAudioDriver(void);
    1.28  
    1.29  /*
    1.30   * This function opens the audio device with the desired parameters, and