Line | |
---|
1 | /* $Id: daudio.h,v 1.3 2001-03-25 21:52:44 sandervl Exp $ */
|
---|
2 | #ifndef __DAUDIO_H__
|
---|
3 | #define __DAUDIO_H__
|
---|
4 |
|
---|
5 | #ifndef FAR
|
---|
6 | #define FAR
|
---|
7 | #endif
|
---|
8 |
|
---|
9 | #define DAUDIO_IOCTL_CAT 0x91
|
---|
10 |
|
---|
11 | #define DAUDIO_OPEN 0x40
|
---|
12 | #define DAUDIO_CLOSE 0x41
|
---|
13 | #define DAUDIO_QUERYFORMAT 0x42
|
---|
14 | #define DAUDIO_SETVOLUME 0x43
|
---|
15 | #define DAUDIO_GETVOLUME 0x44
|
---|
16 | #define DAUDIO_START 0x45
|
---|
17 | #define DAUDIO_STOP 0x46
|
---|
18 | #define DAUDIO_PAUSE 0x47
|
---|
19 | #define DAUDIO_RESUME 0x48
|
---|
20 | #define DAUDIO_GETPOS 0x49
|
---|
21 | #define DAUDIO_ADDBUFFER 0x4A
|
---|
22 | #define DAUDIO_REGISTER_THREAD 0x4B
|
---|
23 | #define DAUDIO_DEREGISTER_THREAD 0x4C
|
---|
24 |
|
---|
25 | typedef struct {
|
---|
26 | union
|
---|
27 | {
|
---|
28 | struct
|
---|
29 | {
|
---|
30 | ULONG VolumeL; // left volume (0..100)
|
---|
31 | ULONG VolumeR; // right volume (0..100)
|
---|
32 | } Vol;
|
---|
33 | struct
|
---|
34 | {
|
---|
35 | ULONG lpBuffer;
|
---|
36 | ULONG ulBufferLength;
|
---|
37 | } Buffer;
|
---|
38 | struct
|
---|
39 | {
|
---|
40 | ULONG ulCurrentPos;
|
---|
41 | } Pos;
|
---|
42 | struct
|
---|
43 | {
|
---|
44 | ULONG hSemaphore;
|
---|
45 | } Thread;
|
---|
46 | };
|
---|
47 |
|
---|
48 | } DAUDIO_CMD, FAR *LPDAUDIO_CMD;
|
---|
49 |
|
---|
50 | #endif //__DAUDIO_H__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.