Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
62 lines (45 loc) · 1.6 KB

SDL_qsa_audio.h

File metadata and controls

62 lines (45 loc) · 1.6 KB
 
Apr 26, 2001
Apr 26, 2001
1
2
/*
SDL - Simple DirectMedia Layer
Dec 8, 2008
Dec 8, 2008
3
Copyright (C) 1997-2009 Sam Lantinga
Apr 26, 2001
Apr 26, 2001
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
Dec 14, 2001
Dec 14, 2001
20
slouken@libsdl.org
Mar 24, 2009
Mar 24, 2009
21
22
23
24
QNX Sound Architecture (QSA) SDL driver
Copyright (C) 2009 Mike Gorchak
(mike@malva.ua, lestat@i.com.ua)
Apr 26, 2001
Apr 26, 2001
25
*/
Mar 24, 2009
Mar 24, 2009
26
Feb 21, 2006
Feb 21, 2006
27
#include "SDL_config.h"
Apr 26, 2001
Apr 26, 2001
28
Mar 24, 2009
Mar 24, 2009
29
30
#ifndef __SDL_QSA_AUDIO_H__
#define __SDL_QSA_AUDIO_H__
Apr 26, 2001
Apr 26, 2001
31
32
33
#include <sys/asoundlib.h>
Feb 16, 2006
Feb 16, 2006
34
35
#include "../SDL_sysaudio.h"
Sep 21, 2003
Sep 21, 2003
36
/* Hidden "this" pointer for the audio functions */
Mar 24, 2009
Mar 24, 2009
37
#define _THIS SDL_AudioDevice* this
Apr 26, 2001
Apr 26, 2001
38
Sep 21, 2003
Sep 21, 2003
39
40
struct SDL_PrivateAudioData
{
Mar 24, 2009
Mar 24, 2009
41
42
43
/* SDL capture state */
int iscapture;
Sep 21, 2003
Sep 21, 2003
44
45
46
/* The audio device handle */
int cardno;
int deviceno;
May 23, 2009
May 23, 2009
47
snd_pcm_t *audio_handle;
Apr 26, 2001
Apr 26, 2001
48
Sep 21, 2003
Sep 21, 2003
49
50
/* The audio file descriptor */
int audio_fd;
Apr 26, 2001
Apr 26, 2001
51
Mar 24, 2009
Mar 24, 2009
52
53
/* Select timeout status */
uint32_t timeout_on_wait;
Apr 26, 2001
Apr 26, 2001
54
Sep 21, 2003
Sep 21, 2003
55
/* Raw mixing buffer */
May 23, 2009
May 23, 2009
56
Uint8 *pcm_buf;
Sep 21, 2003
Sep 21, 2003
57
Uint32 pcm_len;
Apr 26, 2001
Apr 26, 2001
58
59
};
Mar 24, 2009
Mar 24, 2009
60
61
#endif /* __SDL_QSA_AUDIO_H__ */
Jul 10, 2006
Jul 10, 2006
62
/* vi: set ts=4 sw=4 expandtab: */