Mercurial > sdl-ios-xcode
annotate src/audio/dart/SDL_dart.h @ 1327:d12a63a8d95a
Resolved bug #130
Use XFilterEvent() to handle dead-key composition under X11
Cleaned up the code in preparation for 1.3 API changes
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 04 Feb 2006 08:35:11 +0000 |
parents | c9b51268668f |
children | 19418e4422cb |
rev | line source |
---|---|
1190 | 1 /* |
2 SDL - Simple DirectMedia Layer | |
1312
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1190
diff
changeset
|
3 Copyright (C) 1997-2006 Sam Lantinga |
1190 | 4 |
5 This library is free software; you can redistribute it and/or | |
1312
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1190
diff
changeset
|
6 modify it under the terms of the GNU Lesser General Public |
1190 | 7 License as published by the Free Software Foundation; either |
1312
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1190
diff
changeset
|
8 version 2.1 of the License, or (at your option) any later version. |
1190 | 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 | |
1312
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1190
diff
changeset
|
13 Lesser General Public License for more details. |
1190 | 14 |
1312
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1190
diff
changeset
|
15 You should have received a copy of the GNU Lesser General Public |
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1190
diff
changeset
|
16 License along with this library; if not, write to the Free Software |
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1190
diff
changeset
|
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
1190 | 18 |
19 Sam Lantinga | |
20 slouken@libsdl.org | |
21 */ | |
22 | |
23 #ifndef _SDL_lowaudio_h | |
24 #define _SDL_lowaudio_h | |
25 | |
26 #include "SDL_sysaudio.h" | |
27 | |
28 #define INCL_TYPES | |
29 #define INCL_DOSSEMAPHORES | |
30 #define INCL_DOSRESOURCES | |
31 #define INCL_DOSMISC | |
32 #define INCL_DOSERRORS | |
33 | |
34 #define INCL_OS2MM | |
35 #define INCL_MMIOOS2 | |
36 #define INCL_MCIOS2 | |
37 #include <os2.h> | |
38 #include <os2me.h> // DART stuff and MMIO stuff | |
39 | |
40 /* Hidden "this" pointer for the audio functions */ | |
41 #define _THIS SDL_AudioDevice *_this | |
42 | |
43 /* The DirectSound objects */ | |
44 struct SDL_PrivateAudioData | |
45 { | |
46 int iCurrDeviceOrd; | |
47 int iCurrFreq; | |
48 int iCurrBits; | |
49 int iCurrChannels; | |
50 int iCurrNumBufs; | |
51 int iCurrBufSize; | |
52 | |
53 int iLastPlayedBuf; | |
54 int iNextFreeBuffer; | |
55 | |
56 MCI_BUFFER_PARMS BufferParms; // Sound buffer parameters | |
57 MCI_MIX_BUFFER *pMixBuffers; // Sound buffers | |
58 MCI_MIXSETUP_PARMS MixSetupParms; // Mixer setup parameters | |
59 HEV hevAudioBufferPlayed; // Event semaphore to indicate that an audio buffer has been played by DART | |
60 }; | |
61 | |
62 #endif /* _SDL_lowaudio_h */ |