slouken@3099: /* slouken@5535: Simple DirectMedia Layer slouken@10737: Copyright (C) 1997-2017 Sam Lantinga slouken@3099: 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@3099: 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@3099: 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@3099: */ slouken@3099: icculus@8093: #include "../../SDL_internal.h" slouken@3099: slouken@3099: #ifndef __SDL_QSA_AUDIO_H__ slouken@3099: #define __SDL_QSA_AUDIO_H__ slouken@3099: slouken@3099: #include slouken@3099: slouken@3099: #include "../SDL_sysaudio.h" slouken@3099: slouken@3099: /* Hidden "this" pointer for the audio functions */ slouken@3099: #define _THIS SDL_AudioDevice* this slouken@3099: slouken@3099: struct SDL_PrivateAudioData slouken@3099: { slouken@3099: /* SDL capture state */ icculus@10235: SDL_bool iscapture; slouken@3099: slouken@3099: /* The audio device handle */ slouken@3099: int cardno; slouken@3099: int deviceno; slouken@3139: snd_pcm_t *audio_handle; slouken@3099: slouken@3099: /* The audio file descriptor */ slouken@3099: int audio_fd; slouken@3099: slouken@3099: /* Select timeout status */ slouken@3099: uint32_t timeout_on_wait; slouken@3099: slouken@3099: /* Raw mixing buffer */ slouken@3139: Uint8 *pcm_buf; slouken@3099: Uint32 pcm_len; slouken@3099: }; slouken@3099: slouken@3099: #endif /* __SDL_QSA_AUDIO_H__ */ slouken@3099: slouken@3099: /* vi: set ts=4 sw=4 expandtab: */