Mercurial > sdl-ios-xcode
annotate src/audio/dart/SDL_dart.h @ 1373:04499d3e1b6b
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 19 Feb 2006 16:42:18 +0000 |
parents | 19418e4422cb |
children | d910939febfa |
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 #define INCL_TYPES | |
27 #define INCL_DOSSEMAPHORES | |
28 #define INCL_DOSRESOURCES | |
29 #define INCL_DOSMISC | |
30 #define INCL_DOSERRORS | |
31 | |
32 #define INCL_OS2MM | |
33 #define INCL_MMIOOS2 | |
34 #define INCL_MCIOS2 | |
35 #include <os2.h> | |
36 #include <os2me.h> // DART stuff and MMIO stuff | |
37 | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1312
diff
changeset
|
38 #include "../SDL_sysaudio.h" |
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1312
diff
changeset
|
39 |
1190 | 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 */ |