slouken@0: /* slouken@5535: Simple DirectMedia Layer slouken@9998: Copyright (C) 1997-2016 Sam Lantinga slouken@0: slouken@5535: This software is provided 'as-is', without any express or implied slouken@5535: warranty. In no event will the authors be held liable for any damages slouken@5535: arising from the use of this software. slouken@0: slouken@5535: Permission is granted to anyone to use this software for any purpose, slouken@5535: including commercial applications, and to alter it and redistribute it slouken@5535: freely, subject to the following restrictions: slouken@0: slouken@5535: 1. The origin of this software must not be misrepresented; you must not slouken@5535: claim that you wrote the original software. If you use this software slouken@5535: in a product, an acknowledgment in the product documentation would be slouken@5535: appreciated but is not required. slouken@5535: 2. Altered source versions must be plainly marked as such, and must not be slouken@5535: misrepresented as being the original software. slouken@5535: 3. This notice may not be removed or altered from any source distribution. slouken@0: */ icculus@5593: #include "SDL.h" icculus@8093: #include "../SDL_internal.h" icculus@5593: #include "SDL_sysaudio.h" icculus@5593: icculus@5593: /* Open the audio device for playback, and don't block if busy */ icculus@5593: /* #define USE_BLOCKING_WRITES */ slouken@0: icculus@5593: #ifdef USE_BLOCKING_WRITES icculus@5593: #define OPEN_FLAGS_OUTPUT O_WRONLY icculus@5593: #define OPEN_FLAGS_INPUT O_RDONLY icculus@5593: #else icculus@5593: #define OPEN_FLAGS_OUTPUT (O_WRONLY|O_NONBLOCK) icculus@5593: #define OPEN_FLAGS_INPUT (O_RDONLY|O_NONBLOCK) icculus@5593: #endif icculus@5593: icculus@9394: extern void SDL_EnumUnixAudioDevices(const int classic, int (*test)(int)); icculus@2049: slouken@1895: /* vi: set ts=4 sw=4 expandtab: */