Rev | Line | |
---|
[8495] | 1 | /* $Id: mixer.h,v 1.5 2002-05-27 15:49:55 sandervl Exp $ */
|
---|
[8472] | 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 |
|
---|
[8477] | 16 | #include "mixeros2.h"
|
---|
| 17 |
|
---|
[8472] | 18 | #define WINMM_MIXERSTRING_A "OS/2 WINMM Mixer"
|
---|
| 19 | #define WINMM_MIXERSTRING_W (LPWSTR)L"OS/2 WINMM Mixer"
|
---|
| 20 |
|
---|
[8492] | 21 | #define WINMM_MIXER_CAPS_WMID 1
|
---|
| 22 | #define WINMM_MIXER_CAPS_WPID 0x60
|
---|
| 23 | #define WINMM_MIXER_CAPS_VERSION 0x100
|
---|
[8472] | 24 |
|
---|
| 25 | #define MAX_MIXER_DESTINATIONS 8
|
---|
| 26 | #define MAX_MIXER_SOURCES 16
|
---|
| 27 | #define MAX_MIXER_CONTROLS 64
|
---|
[8495] | 28 | #define MAX_MIXER_CONTROL_VAL 16
|
---|
[8472] | 29 |
|
---|
[8493] | 30 | #ifdef __WINE_MMSYSTEM_H
|
---|
| 31 | typedef struct {
|
---|
[8495] | 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 |
|
---|
[8493] | 49 | #endif
|
---|
| 50 |
|
---|
[8472] | 51 | #ifdef __cplusplus
|
---|
| 52 | extern "C" {
|
---|
| 53 | #endif
|
---|
| 54 |
|
---|
| 55 | BOOL mixerInit();
|
---|
| 56 | void mixerExit();
|
---|
| 57 |
|
---|
[21916] | 58 | extern const char *szCtrlName[MIX_CTRL_MAX][2];
|
---|
| 59 | extern const char *szSourceName[MIXER_SRC_MAX][2];
|
---|
| 60 | extern const char *szDestName[MIXER_DEST_MAX][2];
|
---|
[8477] | 61 |
|
---|
[8472] | 62 | #ifdef __cplusplus
|
---|
| 63 | }
|
---|
| 64 | #endif
|
---|
| 65 |
|
---|
| 66 | #endif //__WINMM_MIXER_H__
|
---|
| 67 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.