/usr/include/wine/windows/audiopolicy.idl is in wine1.6-dev 1:1.6.2-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 | /*
* Core Audio audio policy definitions
*
* Copyright 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
*
*/
import "oaidl.idl";
import "ocidl.idl";
import "propidl.idl";
import "audiosessiontypes.h";
import "audioclient.idl";
interface IAudioSessionEvents;
interface IAudioSessionControl;
interface IAudioSessionControl2;
interface IAudioSessionManager;
interface IAudioVolumeDuckNotification;
interface IAudioSessionNotification;
interface IAudioSessionEnumerator;
interface IAudioSessionManager2;
typedef enum AudioSessionDisconnectReason /*[local]*/
{
DisconnectReasonDeviceRemoval = 0,
DisconnectReasonServerShutdown,
DisconnectReasonFormatChanged,
DisconnectReasonSessionLogoff,
DisconnectReasonSessionDisconnected,
DisconnectReasonExclusiveModeOverride,
} AudioSessionDisconnectReason;
[
local,
uuid(24918acc-64b3-37c1-8ca9-74a66e9957a8),
pointer_default(unique),
object
]
interface IAudioSessionEvents : IUnknown
{
HRESULT OnDisplayNameChanged(
[string,in] LPCWSTR NewDisplayName,
[in] LPCGUID EventContext
);
HRESULT OnIconPathChanged(
[string,in] LPCWSTR NewIconPath,
[in] LPCGUID EventContext
);
HRESULT OnSimpleVolumeChanged(
[in] float NewVolume,
[in] BOOL NewMute,
[in] LPCGUID EventContext
);
HRESULT OnChannelVolumeChanged(
[in] DWORD ChannelCount,
[size_is(ChannelCount),in] float *NewChannelVolumeArray,
[in] DWORD ChangedChannel,
[in] LPCGUID EventContext
);
HRESULT OnGroupingParamChanged(
[in] LPCGUID NewGroupingParam,
[in] LPCGUID EventContext
);
HRESULT OnStateChanged(
[in] AudioSessionState NewState
);
HRESULT OnSessionDisconnected(
[in] AudioSessionDisconnectReason DisconnectReason
);
}
[
local,
uuid(f4b1a599-7266-4319-a8ca-e70acb11e8cd),
pointer_default(unique),
object
]
interface IAudioSessionControl : IUnknown
{
HRESULT GetState(
[out] AudioSessionState *pRetVal
);
HRESULT GetDisplayName(
[string,out] LPWSTR *pRetVal
);
HRESULT SetDisplayName(
[string,in] LPCWSTR DisplayName,
[unique,in] LPCGUID EventContext
);
HRESULT GetIconPath(
[string,out] LPWSTR *pRetVal
);
HRESULT SetIconPath(
[string,in] LPCWSTR Value,
[unique,in] LPCGUID EventContext
);
HRESULT GetGroupingParam(
[out] GUID *pRetVal
);
HRESULT SetGroupingParam(
[in] LPCGUID Override,
[unique,in] LPCGUID EventContext
);
HRESULT RegisterAudioSessionNotification(
[in] IAudioSessionEvents *NewNotifications
);
HRESULT UnregisterAudioSessionNotification(
[in] IAudioSessionEvents *NewNotifications
);
}
[
local,
uuid(bfb7ff88-7239-4fc9-8fa2-07c950be9c6d),
pointer_default(unique),
object
]
interface IAudioSessionControl2 : IAudioSessionControl
{
HRESULT GetSessionIdentifier(
[string,out] LPWSTR *pRetVal
);
HRESULT GetSessionInstanceIdentifier(
[string,out] LPWSTR *pRetVal
);
HRESULT GetProcessId(
[out] DWORD *pRetVal
);
HRESULT IsSystemSoundsSession(void);
HRESULT SetDuckingPreferences(
[in] BOOL optOut
);
};
[
local,
uuid(bfa971f1-4d5e-40bb-935e-967039bfbee4),
pointer_default(unique),
object
]
interface IAudioSessionManager : IUnknown
{
HRESULT GetAudioSessionControl(
[in] LPCGUID AudioSessionGuid,
[in] DWORD StreamFlags,
[out] IAudioSessionControl **SessionControl
);
HRESULT GetSimpleAudioVolume(
[in] LPCGUID AudioSessionGuid,
[in] DWORD StreamFlags,
[out] ISimpleAudioVolume **AudioVolume
);
};
[
local,
uuid(c3b284d4-6d39-4359-b3cf-b56ddb3bb39c),
pointer_default(unique),
object
]
interface IAudioVolumeDuckNotification : IUnknown
{
HRESULT OnVolumeDuckNotification(
[in] LPCWSTR sessionID,
[in] UINT32 countCommunicationSessions
);
HRESULT OnVolumeUnduckNotification(
[in] LPCWSTR sessionID
);
};
[
local,
uuid(641dd20b-4d41-49cc-aba3-174b9477bb08),
pointer_default(unique),
object
]
interface IAudioSessionNotification : IUnknown
{
HRESULT OnSessionCreated(
[in] IAudioSessionControl *NewSession
);
};
[
local,
uuid(e2f5bb11-0570-40ca-acdd-3aa01277dee8),
pointer_default(unique),
object
]
interface IAudioSessionEnumerator : IUnknown
{
HRESULT GetCount(
[out] INT *SessionCount
);
HRESULT GetSession(
[in] INT SessionCount,
[out] IAudioSessionControl **Session
);
};
[
local,
uuid(77aa99a0-1bd6-484f-8bc7-2c654c9a9b6f),
pointer_default(unique),
object
]
interface IAudioSessionManager2 : IAudioSessionManager
{
HRESULT GetSessionEnumerator(
[retval,out] IAudioSessionEnumerator **SessionEnum
);
HRESULT RegisterSessionNotification(
[in] IAudioSessionNotification *SessionNotification
);
HRESULT UnregisterSessionNotification(
[in] IAudioSessionNotification *SessionNotification
);
HRESULT RegisterDuckNotification(
[string,in] LPCWSTR sessionID,
[in] IAudioVolumeDuckNotification *duckNotification
);
HRESULT UnregisterDuckNotification(
[in] IAudioVolumeDuckNotification *duckNotification
);
};
|