source: trunk/src/dsound/new/Dart.h@ 3062

Last change on this file since 3062 was 3027, checked in by mike, 26 years ago

* empty log message *

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 16384
33#define NUM_DART_BUFFS 16
34
35long Dart_Open_Device(USHORT *pusDeviceID, void **vpMixBuffer, void **vpMixSetup,
36 void **vpBuffParms, void **ppvBuffer);
37
38
39long Dart_Close_Device(USHORT usDeviceID, void *vpMixBuffer, void *vpMixSetup,
40 void *vpBuffParms );
41
42long Dart_GetPosition(USHORT usDeviceID, LONG *pulPosition);
43long Dart_Stop(USHORT usDeviceID);
44long Dart_Play(USHORT usDeviceID, void *vpMixSetup, void *vpMixBuffer, long playing);
45long Dart_SetFormat(USHORT *pusDeviceID, void *vpMixSetup, void *vpBufferParms,
46 void *vpMixBuffer, LONG lBPS, LONG lSPS, LONG lChannels );
47
Note: See TracBrowser for help on using the repository browser.