Last change
on this file since 10367 was 8495, checked in by sandervl, 23 years ago |
implemented mixerGetControlDetailsA/W completely + mixer updates
|
File size:
1.5 KB
|
Line | |
---|
1 | /* $Id: mixer.h,v 1.5 2002-05-27 15:49:55 sandervl Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * Mixer multimedia
|
---|
5 | *
|
---|
6 | * Copyright 2002 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
7 | *
|
---|
8 | *
|
---|
9 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
10 | *
|
---|
11 | */
|
---|
12 |
|
---|
13 | #ifndef __WINMM_MIXER_H__
|
---|
14 | #define __WINMM_MIXER_H__
|
---|
15 |
|
---|
16 | #include "mixeros2.h"
|
---|
17 |
|
---|
18 | #define WINMM_MIXERSTRING_A "OS/2 WINMM Mixer"
|
---|
19 | #define WINMM_MIXERSTRING_W (LPWSTR)L"OS/2 WINMM Mixer"
|
---|
20 |
|
---|
21 | #define WINMM_MIXER_CAPS_WMID 1
|
---|
22 | #define WINMM_MIXER_CAPS_WPID 0x60
|
---|
23 | #define WINMM_MIXER_CAPS_VERSION 0x100
|
---|
24 |
|
---|
25 | #define MAX_MIXER_DESTINATIONS 8
|
---|
26 | #define MAX_MIXER_SOURCES 16
|
---|
27 | #define MAX_MIXER_CONTROLS 64
|
---|
28 | #define MAX_MIXER_CONTROL_VAL 16
|
---|
29 |
|
---|
30 | #ifdef __WINE_MMSYSTEM_H
|
---|
31 | typedef struct {
|
---|
32 | MIXERLINEA line;
|
---|
33 | int cControls;
|
---|
34 | //array of associated control (index in mixerControls)
|
---|
35 | int Controls[MAX_SOURCE_CONTROLS];
|
---|
36 | int cConnections;
|
---|
37 | //array of connected line (index in pmixerLines)
|
---|
38 | int Connections[MAX_MIXER_SOURCES];
|
---|
39 | int id; //internal id
|
---|
40 | } MIXLINE, *PMIXLINE;
|
---|
41 |
|
---|
42 | typedef struct {
|
---|
43 | MIXERCONTROLA ctrl;
|
---|
44 | //control value(s)
|
---|
45 | MIXERCONTROLDETAILS_UNSIGNED val[MAX_MIXER_CONTROL_VAL];
|
---|
46 | int id; //internal id
|
---|
47 | } MIXCONTROL, *PMIXCONTROL;
|
---|
48 |
|
---|
49 | #endif
|
---|
50 |
|
---|
51 | #ifdef __cplusplus
|
---|
52 | extern "C" {
|
---|
53 | #endif
|
---|
54 |
|
---|
55 | BOOL mixerInit();
|
---|
56 | void mixerExit();
|
---|
57 |
|
---|
58 | extern char *szCtrlName[MIX_CTRL_MAX][2];
|
---|
59 | extern char *szSourceName[MIXER_SRC_MAX][2];
|
---|
60 | extern char *szDestName[MIXER_DEST_MAX][2];
|
---|
61 |
|
---|
62 | #ifdef __cplusplus
|
---|
63 | }
|
---|
64 | #endif
|
---|
65 |
|
---|
66 | #endif //__WINMM_MIXER_H__
|
---|
67 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.