src/audio/SDL_audiodev_c.h
changeset 5593 ab22ca13c47f
parent 5535 96594ac5fd1a
child 6138 4c64952a58fb
equal deleted inserted replaced
5592:2e88d0742f4d 5593:ab22ca13c47f
    16      appreciated but is not required.
    16      appreciated but is not required.
    17   2. Altered source versions must be plainly marked as such, and must not be
    17   2. Altered source versions must be plainly marked as such, and must not be
    18      misrepresented as being the original software.
    18      misrepresented as being the original software.
    19   3. This notice may not be removed or altered from any source distribution.
    19   3. This notice may not be removed or altered from any source distribution.
    20 */
    20 */
       
    21 #include "SDL.h"
    21 #include "SDL_config.h"
    22 #include "SDL_config.h"
       
    23 #include "SDL_sysaudio.h"
    22 
    24 
    23 void SDL_EnumUnixAudioDevices(int flags, int classic, int (*test) (int fd),
    25 /* Open the audio device for playback, and don't block if busy */
    24                               char ***devs, int *count);
    26 /* #define USE_BLOCKING_WRITES */
    25 void SDL_FreeUnixAudioDevices(char ***devices, int *devCount);
    27 
       
    28 #ifdef USE_BLOCKING_WRITES
       
    29 #define OPEN_FLAGS_OUTPUT O_WRONLY
       
    30 #define OPEN_FLAGS_INPUT O_RDONLY
       
    31 #else
       
    32 #define OPEN_FLAGS_OUTPUT (O_WRONLY|O_NONBLOCK)
       
    33 #define OPEN_FLAGS_INPUT (O_RDONLY|O_NONBLOCK)
       
    34 #endif
       
    35 
       
    36 void SDL_EnumUnixAudioDevices(int iscapture, int classic,
       
    37                               int (*test) (int fd), SDL_AddAudioDevice addfn);
    26 
    38 
    27 /* vi: set ts=4 sw=4 expandtab: */
    39 /* vi: set ts=4 sw=4 expandtab: */