summaryrefslogtreecommitdiffstats
path: root/src/VBox/Devices/Graphics/shaderlib/wine/include/endpointvolume.idl
blob: 76a1465f2d04d80fd43a83384c7a54ce8516d500 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
/*
 * Copyright (C) 2009 Maarten Lankhorst
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 */

/*
 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
 * a choice of LGPL license versions is made available with the language indicating
 * that LGPLv2 or any later version may be used, or where a choice of which version
 * of the LGPL is applied is otherwise unspecified.
 */

import "unknwn.idl";
import "devicetopology.idl";

typedef struct AUDIO_VOLUME_NOTIFICATION_DATA
{
    GUID guidEventContext;
    BOOL bMuted;
    FLOAT fMasterVolume;
    UINT nChannels;
    FLOAT afChannelVolumes[1];
} AUDIO_VOLUME_NOTIFICATION_DATA;

cpp_quote("typedef struct AUDIO_VOLUME_NOTIFICATION_DATA *PAUDIO_VOLUME_NOTIFICATION_DATA;")

cpp_quote("#define ENDPOINT_HARDWARE_SUPPORT_VOLUME 0x1")
cpp_quote("#define ENDPOINT_HARDWARE_SUPPORT_MUTE 0x2")
cpp_quote("#define ENDPOINT_HARDWARE_SUPPORT_METER 0x4")

interface IAudioEndpointVolumeCallback;
interface IAudioEndpointVolume;
interface IAudioEndpointVolumeEx;
interface IAudioMeterInformation;

[
    pointer_default(unique),
    nonextensible,
    uuid(657804fa-d6ad-4496-8a60-352752af4f89),
    local,
    object
]
interface IAudioEndpointVolumeCallback : IUnknown
{
    HRESULT OnNotify(
        AUDIO_VOLUME_NOTIFICATION_DATA *pNotify
    );
}

[
    pointer_default(unique),
    nonextensible,
    uuid(5cdf2c82-841e-4546-9722-0cf74078229a),
    local,
    object
]
interface IAudioEndpointVolume : IUnknown
{
    HRESULT RegisterControlChangeNotify(
        [in] IAudioEndpointVolumeCallback *pNotify
    );
    HRESULT UnregisterControlChangeNotify(
        [in] IAudioEndpointVolumeCallback *pNotify
    );
    HRESULT GetChannelCount(
        [out] UINT *pnChannelCount
    );
    HRESULT SetMasterVolumeLevel(
        [in] FLOAT fLevelDB,
        [unique,in] LPCGUID pguidEventContext
    );
    HRESULT SetMasterVolumeLevelScalar(
        [in] FLOAT fLevel,
        [unique,in] LPCGUID pguidEventContext
    );
    HRESULT GetMasterVolumeLevel(
        [out] FLOAT *fLevelDB
    );
    HRESULT GetMasterVolumeLevelScalar(
        [out] FLOAT *fLevel
    );
    HRESULT SetChannelVolumeLevel(
        [in] UINT nChannel,
        [in] FLOAT fLevelDB,
        [unique,in] LPCGUID pguidEventContext
    );
    HRESULT SetChannelVolumeLevelScalar(
        [in] UINT nChannel,
        [in] FLOAT fLevel,
        [unique,in] LPCGUID pguidEventContext
    );
    HRESULT GetChannelVolumeLevel(
        [in] UINT nChannel,
        [out] FLOAT *fLevelDB
    );
    HRESULT GetChannelVolumeLevelScalar(
        [in] UINT nChannel,
        [out] FLOAT *fLevel
    );
    HRESULT SetMute(
        [in] BOOL bMute,
        [unique,in] LPCGUID pguidEventContext
    );
    HRESULT GetMute(
        [out] BOOL *bMute
    );
    HRESULT GetVolumeStepInfo(
        [out] UINT *pnStep,
        [out] UINT *pnStepCount
    );
    HRESULT VolumeStepUp(
        [unique,in] LPCGUID pguidEventContext
    );
    HRESULT VolumeStepDown(
        [unique,in] LPCGUID pguidEventContext
    );
    HRESULT QueryHardwareSupport(
        [out] DWORD *pdwHardwareSupportMask
    );
    HRESULT GetVolumeRange(
        [out] FLOAT *pflVolumeMindB,
        [out] FLOAT *pflVolumeMaxdB,
        [out] FLOAT *pflVolumeIncrementdB
    );
}

[
    pointer_default(unique),
    nonextensible,
    uuid(66e11784-f695-4f28-a505-a7080081a78f),
    local,
    object
]
interface IAudioEndpointVolumeEx : IAudioEndpointVolume
{
    HRESULT GetVolumeRangeChannel(
        [in] UINT iChannel,
        [out] FLOAT *pflVolumeMindB,
        [out] FLOAT *pflVolumeMaxdB,
        [out] FLOAT *pflVolumeIncrementdB
    );
}