source: trunk/src/dsound/Dart.h@ 6502

Last change on this file since 6502 was 3555, checked in by mike, 25 years ago

Updated and slightly fixed DSOUND

File size: 1.7 KB
Line 
1
2#define INVALID_PARMS 1
3#define OUT_OF_MEMORY 2
4
5
6#ifdef DART_DSOUND
7
8 #define E_NOTIMPL 0x80004001
9 #define CLASS_E_NOAGGREGATION 0x80040110
10 #define E_OUTOFMEMORY 0x8007000E
11 #define E_INVALIDARG 0x80070057
12 #define E_FAIL 0x80000008
13
14 #define DS_OK 0
15 #define DSERR_ALLOCATED 10
16 #define DSERR_CONTROLUNAVAIL 30
17 #define DSERR_INVALIDPARAM E_INVALIDARG
18 #define DSERR_INVALIDCALL 50
19 #define DSERR_GENERIC E_FAIL
20 #define DSERR_PRIOLEVELNEEDED 70
21 #define DSERR_OUTOFMEMORY E_OUTOFMEMORY
22 #define DSERR_BADFORMAT 100
23 #define DSERR_UNSUPPORTED E_NOTIMPL
24 #define DSERR_NODRIVER 120
25 #define DSERR_ALREADYINITIALIZED 130
26 #define DSERR_NOAGGREGATION CLASS_E_NOAGGREGATION
27 #define DSERR_BUFFERLOST 150
28 #define DSERR_OTHERAPPHASPRIO 160
29 #define DSERR_UNINITIALIZED 170
30
31#endif
32
33
34#define BUFFER_SIZE 32768
35
36extern ULONG ulNumDartBuffs;
37
38long Dart_Open_Device(USHORT *pusDeviceID, void **vpMixBuffer, void **vpMixSetup,
39 void **vpBuffParms, void **ppvBuffer);
40
41
42long Dart_Close_Device(USHORT usDeviceID, void *vpMixBuffer, void *vpMixSetup,
43 void *vpBuffParms );
44
45long Dart_GetPosition(USHORT usDeviceID, LONG *pulPosition);
46long Dart_Stop(USHORT usDeviceID);
47long Dart_Play(USHORT usDeviceID, void *vpMixSetup, void *vpMixBuffer, long playing);
48long Dart_SetFormat(USHORT *pusDeviceID, void *vpMixSetup, void *vpBufferParms,
49 void **vpMixBuffer, LONG lBPS, LONG lSPS, LONG lChannels );
50
Note: See TracBrowser for help on using the repository browser.