src/audio/SDL_audiodev_c.h
changeset 5593 ab22ca13c47f
parent 5535 96594ac5fd1a
child 6138 4c64952a58fb
     1.1 --- a/src/audio/SDL_audiodev_c.h	Thu Aug 04 01:07:09 2011 -0400
     1.2 +++ b/src/audio/SDL_audiodev_c.h	Thu Aug 04 00:31:11 2011 -0400
     1.3 @@ -18,10 +18,22 @@
     1.4       misrepresented as being the original software.
     1.5    3. This notice may not be removed or altered from any source distribution.
     1.6  */
     1.7 +#include "SDL.h"
     1.8  #include "SDL_config.h"
     1.9 +#include "SDL_sysaudio.h"
    1.10 +
    1.11 +/* Open the audio device for playback, and don't block if busy */
    1.12 +/* #define USE_BLOCKING_WRITES */
    1.13  
    1.14 -void SDL_EnumUnixAudioDevices(int flags, int classic, int (*test) (int fd),
    1.15 -                              char ***devs, int *count);
    1.16 -void SDL_FreeUnixAudioDevices(char ***devices, int *devCount);
    1.17 +#ifdef USE_BLOCKING_WRITES
    1.18 +#define OPEN_FLAGS_OUTPUT O_WRONLY
    1.19 +#define OPEN_FLAGS_INPUT O_RDONLY
    1.20 +#else
    1.21 +#define OPEN_FLAGS_OUTPUT (O_WRONLY|O_NONBLOCK)
    1.22 +#define OPEN_FLAGS_INPUT (O_RDONLY|O_NONBLOCK)
    1.23 +#endif
    1.24 +
    1.25 +void SDL_EnumUnixAudioDevices(int iscapture, int classic,
    1.26 +                              int (*test) (int fd), SDL_AddAudioDevice addfn);
    1.27  
    1.28  /* vi: set ts=4 sw=4 expandtab: */