0
|
1 /*
|
|
2 AIX support for the SDL - Simple DirectMedia Layer
|
|
3 Copyright (C) 2000 Carsten Griwodz
|
|
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 Carsten Griwodz
|
|
20 griff@kom.tu-darmstadt.de
|
|
21
|
|
22 based on linux/SDL_dspaudio.h by Sam Lantinga
|
|
23 */
|
|
24
|
|
25 #ifdef SAVE_RCSID
|
|
26 static char rcsid =
|
|
27 "@(#) $Id$";
|
|
28 #endif
|
|
29
|
|
30 #ifndef _SDL_UMSaudio_h
|
|
31 #define _SDL_UMSaudio_h
|
|
32
|
|
33 #include "SDL_sysaudio.h"
|
|
34
|
|
35 #include <UMS/UMSAudioDevice.h>
|
|
36
|
|
37 /* Hidden "this" pointer for the video functions */
|
|
38 #define _THIS SDL_AudioDevice *this
|
|
39
|
|
40 struct SDL_PrivateAudioData
|
|
41 {
|
|
42 /* Pointer to the (open) UMS audio device */
|
|
43 Environment* ev;
|
|
44 UMSAudioDevice umsdev;
|
|
45
|
|
46 /* Raw mixing buffer */
|
|
47 UMSAudioTypes_Buffer playbuf;
|
|
48 UMSAudioTypes_Buffer fillbuf;
|
|
49
|
|
50 long bytesPerSample;
|
|
51 };
|
|
52
|
|
53 #endif /* _SDL_UMSaudio_h */
|
|
54
|