ReactOS  0.4.13-dev-1089-g05f0b08
endpointvolume.idl
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009 Maarten Lankhorst
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18 
19 import "unknwn.idl";
20 import "devicetopology.idl";
21 
23 {
30 
31 cpp_quote("typedef struct AUDIO_VOLUME_NOTIFICATION_DATA *PAUDIO_VOLUME_NOTIFICATION_DATA;")
32 
33 cpp_quote("#define ENDPOINT_HARDWARE_SUPPORT_VOLUME 0x1")
34 cpp_quote("#define ENDPOINT_HARDWARE_SUPPORT_MUTE 0x2")
35 cpp_quote("#define ENDPOINT_HARDWARE_SUPPORT_METER 0x4")
36 
38 interface IAudioEndpointVolume;
39 interface IAudioEndpointVolumeEx;
40 interface IAudioMeterInformation;
41 
42 [
44  nonextensible,
45  uuid(657804fa-d6ad-4496-8a60-352752af4f89),
46  local,
47  object
48 ]
50 {
53  );
54 }
55 
56 [
58  nonextensible,
59  uuid(5cdf2c82-841e-4546-9722-0cf74078229a),
60  local,
61  object
62 ]
64 {
67  );
70  );
72  [out] UINT *pnChannelCount
73  );
75  [in] FLOAT fLevelDB,
76  [unique,in] LPCGUID pguidEventContext
77  );
79  [in] FLOAT fLevel,
80  [unique,in] LPCGUID pguidEventContext
81  );
83  [out] FLOAT *fLevelDB
84  );
86  [out] FLOAT *fLevel
87  );
89  [in] UINT nChannel,
90  [in] FLOAT fLevelDB,
91  [unique,in] LPCGUID pguidEventContext
92  );
94  [in] UINT nChannel,
95  [in] FLOAT fLevel,
96  [unique,in] LPCGUID pguidEventContext
97  );
99  [in] UINT nChannel,
100  [out] FLOAT *fLevelDB
101  );
103  [in] UINT nChannel,
104  [out] FLOAT *fLevel
105  );
107  [in] BOOL bMute,
108  [unique,in] LPCGUID pguidEventContext
109  );
111  [out] BOOL *bMute
112  );
114  [out] UINT *pnStep,
115  [out] UINT *pnStepCount
116  );
118  [unique,in] LPCGUID pguidEventContext
119  );
121  [unique,in] LPCGUID pguidEventContext
122  );
124  [out] DWORD *pdwHardwareSupportMask
125  );
127  [out] FLOAT *pflVolumeMindB,
128  [out] FLOAT *pflVolumeMaxdB,
129  [out] FLOAT *pflVolumeIncrementdB
130  );
131 }
132 
133 [
135  nonextensible,
136  uuid(66e11784-f695-4f28-a505-a7080081a78f),
137  local,
138  object
139 ]
141 {
143  [in] UINT iChannel,
144  [out] FLOAT *pflVolumeMindB,
145  [out] FLOAT *pflVolumeMaxdB,
146  [out] FLOAT *pflVolumeIncrementdB
147  );
148 }
HRESULT SetMasterVolumeLevel([in] FLOAT fLevelDB, [unique, in] LPCGUID pguidEventContext)
HRESULT SetChannelVolumeLevel([in] UINT nChannel, [in] FLOAT fLevelDB, [unique, in] LPCGUID pguidEventContext)
HRESULT QueryHardwareSupport([out] DWORD *pdwHardwareSupportMask)
HRESULT SetChannelVolumeLevelScalar([in] UINT nChannel, [in] FLOAT fLevel, [unique, in] LPCGUID pguidEventContext)
HRESULT SetMasterVolumeLevelScalar([in] FLOAT fLevel, [unique, in] LPCGUID pguidEventContext)
HRESULT GetVolumeRangeChannel([in] UINT iChannel, [out] FLOAT *pflVolumeMindB, [out] FLOAT *pflVolumeMaxdB, [out] FLOAT *pflVolumeIncrementdB)
HRESULT VolumeStepDown([unique, in] LPCGUID pguidEventContext)
HRESULT GetChannelVolumeLevelScalar([in] UINT nChannel, [out] FLOAT *fLevel)
coclass AMMultiMediaStream cpp_quote("DEFINE_GUID(CLSID_AMDirectDrawStream, 0x49c47ce4, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") cpp_quote("DEFINE_GUID(CLSID_AMAudioStream
HRESULT RegisterControlChangeNotify([in] IAudioEndpointVolumeCallback *pNotify)
HRESULT GetMute([out] BOOL *bMute)
HRESULT GetMasterVolumeLevelScalar([out] FLOAT *fLevel)
unsigned int BOOL
Definition: ntddk_ex.h:94
#define e
Definition: ke_i.h:82
HRESULT SetMute([in] BOOL bMute, [unique, in] LPCGUID pguidEventContext)
HRESULT GetVolumeRange([out] FLOAT *pflVolumeMindB, [out] FLOAT *pflVolumeMaxdB, [out] FLOAT *pflVolumeIncrementdB)
struct AUDIO_VOLUME_NOTIFICATION_DATA AUDIO_VOLUME_NOTIFICATION_DATA
LONG HRESULT
Definition: typedefs.h:77
static FILE * out
Definition: regtests2xml.c:44
unsigned long DWORD
Definition: ntddk_ex.h:95
HRESULT GetMasterVolumeLevel([out] FLOAT *fLevelDB)
HRESULT OnNotify(AUDIO_VOLUME_NOTIFICATION_DATA *pNotify)
#define local
Definition: zutil.h:30
HRESULT GetChannelCount([out] UINT *pnChannelCount)
GLuint in
Definition: glext.h:9616
static unsigned char pointer_default
Definition: parser.tab.c:114
HRESULT GetVolumeStepInfo([out] UINT *pnStep, [out] UINT *pnStepCount)
unsigned int UINT
Definition: ndis.h:50
float FLOAT
Definition: typedefs.h:67
HRESULT VolumeStepUp([unique, in] LPCGUID pguidEventContext)
HRESULT GetChannelVolumeLevel([in] UINT nChannel, [out] FLOAT *fLevelDB)
HRESULT UnregisterControlChangeNotify([in] IAudioEndpointVolumeCallback *pNotify)
void * object
Definition: jmemsys.h:48
f_args fa
Definition: format.c:280