This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
/
SDL_qsa_audio.h
62 lines (45 loc) · 1.6 KB
1
2
/*
SDL - Simple DirectMedia Layer
3
Copyright (C) 1997-2009 Sam Lantinga
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Sam Lantinga
20
slouken@libsdl.org
21
22
23
24
QNX Sound Architecture (QSA) SDL driver
Copyright (C) 2009 Mike Gorchak
(mike@malva.ua, lestat@i.com.ua)
25
*/
26
27
#include "SDL_config.h"
28
29
30
#ifndef __SDL_QSA_AUDIO_H__
#define __SDL_QSA_AUDIO_H__
31
32
33
#include <sys/asoundlib.h>
34
35
#include "../SDL_sysaudio.h"
36
/* Hidden "this" pointer for the audio functions */
37
#define _THIS SDL_AudioDevice* this
38
39
40
struct SDL_PrivateAudioData
{
41
42
43
/* SDL capture state */
int iscapture;
44
45
46
/* The audio device handle */
int cardno;
int deviceno;
47
snd_pcm_t *audio_handle;
48
49
50
/* The audio file descriptor */
int audio_fd;
51
52
53
/* Select timeout status */
uint32_t timeout_on_wait;
54
55
/* Raw mixing buffer */
56
Uint8 *pcm_buf;
57
Uint32 pcm_len;
58
59
};
60
61
#endif /* __SDL_QSA_AUDIO_H__ */
62
/* vi: set ts=4 sw=4 expandtab: */