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

Last change on this file since 3313 was 3099, checked in by sandervl, 25 years ago

replaced dsound by new version

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