src/audio/SDL_sysaudio.h
changeset 5593 ab22ca13c47f
parent 5590 db152c9f31c3
child 6138 4c64952a58fb
     1.1 --- a/src/audio/SDL_sysaudio.h	Thu Aug 04 01:07:09 2011 -0400
     1.2 +++ b/src/audio/SDL_sysaudio.h	Thu Aug 04 00:31:11 2011 -0400
     1.3 @@ -30,10 +30,12 @@
     1.4  typedef struct SDL_AudioDevice SDL_AudioDevice;
     1.5  #define _THIS	SDL_AudioDevice *_this
     1.6  
     1.7 +/* Used by audio targets during DetectDevices() */
     1.8 +typedef void (*SDL_AddAudioDevice)(const char *name);
     1.9 +
    1.10  typedef struct SDL_AudioDriverImpl
    1.11  {
    1.12 -    int (*DetectDevices) (int iscapture);
    1.13 -    const char *(*GetDeviceName) (int index, int iscapture);
    1.14 +    void (*DetectDevices) (int iscapture, SDL_AddAudioDevice addfn);
    1.15      int (*OpenDevice) (_THIS, const char *devname, int iscapture);
    1.16      void (*ThreadInit) (_THIS); /* Called by audio thread at start */
    1.17      void (*WaitDevice) (_THIS);
    1.18 @@ -67,6 +69,12 @@
    1.19      const char *desc;
    1.20  
    1.21      SDL_AudioDriverImpl impl;
    1.22 +
    1.23 +    char **outputDevices;
    1.24 +    int outputDeviceCount;
    1.25 +
    1.26 +    char **inputDevices;
    1.27 +    int inputDeviceCount;
    1.28  } SDL_AudioDriver;
    1.29  
    1.30