Mercurial > sdl-ios-xcode
annotate src/audio/nas/SDL_nasaudio.h @ 769:b8d311d90021
Updated copyright information for 2004 (Happy New Year!)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 04 Jan 2004 16:49:27 +0000 |
parents | 6399f4e90211 |
children | c9b51268668f |
rev | line source |
---|---|
0 | 1 /* |
2 SDL - Simple DirectMedia Layer | |
769
b8d311d90021
Updated copyright information for 2004 (Happy New Year!)
Sam Lantinga <slouken@libsdl.org>
parents:
605
diff
changeset
|
3 Copyright (C) 1997-2004 Sam Lantinga |
0 | 4 |
5 This library is free software; you can redistribute it and/or | |
6 modify it under the terms of the GNU Library General Public | |
7 License as published by the Free Software Foundation; either | |
8 version 2 of the License, or (at your option) any later version. | |
9 | |
10 This library is distributed in the hope that it will be useful, | |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 Library General Public License for more details. | |
14 | |
15 You should have received a copy of the GNU Library General Public | |
16 License along with this library; if not, write to the Free | |
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
18 | |
19 Sam Lantinga | |
252
e8157fcb3114
Updated the source with the correct e-mail address
Sam Lantinga <slouken@libsdl.org>
parents:
0
diff
changeset
|
20 slouken@libsdl.org |
0 | 21 |
22 This driver was written by: | |
23 Erik Inge Bolsų | |
24 knan@mo.himolde.no | |
25 */ | |
26 | |
27 #ifdef SAVE_RCSID | |
28 static char rcsid = | |
29 "@(#) $Id$"; | |
30 #endif | |
31 | |
32 #ifndef _SDL_nasaudio_h | |
33 #define _SDL_nasaudio_h | |
34 | |
605
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
297
diff
changeset
|
35 #ifdef __sgi |
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
297
diff
changeset
|
36 #include <nas/audiolib.h> |
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
297
diff
changeset
|
37 #else |
0 | 38 #include <audio/audiolib.h> |
605
6399f4e90211
IRIX patches from Andrea Suatoni
Sam Lantinga <slouken@libsdl.org>
parents:
297
diff
changeset
|
39 #endif |
0 | 40 #include <sys/time.h> |
41 #include "SDL_sysaudio.h" | |
42 | |
43 /* Hidden "this" pointer for the video functions */ | |
44 #define _THIS SDL_AudioDevice *this | |
45 | |
46 struct SDL_PrivateAudioData { | |
47 AuServer* aud; | |
48 AuFlowID flow; | |
49 AuDeviceID dev; | |
50 | |
51 /* The parent process id, to detect when application quits */ | |
52 pid_t parent; | |
53 | |
54 /* Raw mixing buffer */ | |
55 Uint8 *mixbuf; | |
56 int mixlen; | |
57 | |
58 int written; | |
59 int really; | |
60 int bps; | |
61 struct timeval last_tv; | |
62 int buf_free; | |
63 }; | |
64 #endif /* _SDL_nasaudio_h */ | |
65 |