Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
86ce6e29
Commit
86ce6e29
authored
Nov 10, 2009
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add audiopolicy.idl.
parent
2757e1ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
247 additions
and
0 deletions
+247
-0
.gitignore
.gitignore
+1
-0
Makefile.in
include/Makefile.in
+1
-0
audiopolicy.idl
include/audiopolicy.idl
+245
-0
No files found.
.gitignore
View file @
86ce6e29
...
...
@@ -126,6 +126,7 @@ include/activscp.h
include/amstream.h
include/amvideo.h
include/audioclient.h
include/audiopolicy.h
include/austream.h
include/bits.h
include/bits1_5.h
...
...
include/Makefile.in
View file @
86ce6e29
...
...
@@ -15,6 +15,7 @@ PUBLIC_IDL_H_SRCS = \
amstream.idl
\
amvideo.idl
\
audioclient.idl
\
audiopolicy.idl
\
austream.idl
\
bits.idl
\
bits1_5.idl
\
...
...
include/audiopolicy.idl
0 → 100644
View file @
86ce6e29
/*
*
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
*
*/
cpp_quote
(
"#ifndef __audiopolicy_h__"
)
cpp_quote
(
"#define __audiopolicy_h__"
)
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
(
24918
acc
-
64b3
-
37
c1
-
8
ca9
-
74
a66e9957a8
),
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
]
GUID
*
Override
,
[
unique
,
in
]
LPCGUID
EventContext
)
;
HRESULT
RegisterAudioSessionNotification
(
[
in
]
IAudioSessionEvents
*
NewNotifications
)
;
HRESULT
UnregisterAudioSessionNotification
(
[
in
]
IAudioSessionEvents
*
NewNotifications
)
;
}
[
local
,
uuid
(
bfb7ff88
-
7239
-
4
fc9
-
8
fa2
-
07
c950be9c6d
),
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
-
4
d5e
-
40b
b
-935e-967039
bfbee4
),
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
-
6
d39
-
4359
-
b3cf
-
b56ddb3bb39c
),
pointer_default
(
unique
),
object
]
interface
IAudioVolumeDuckNotification
:
IUnknown
{
HRESULT
OnVolumeDuckNotification
(
[
in
]
LPCWSTR
sessionID
,
[
in
]
UINT32
countCommunicationSessions
)
;
HRESULT
OnVolumeUndockNotification
(
[
in
]
LPCWSTR
sessionID
)
;
}
;
[
local
,
uuid
(
641
dd20b
-
4
d41
-
49
cc
-
aba3
-
174b9477b
b08
),
pointer_default
(
unique
),
object
]
interface
IAudioSessionNotification
:
IUnknown
{
HRESULT
OnSessionCreated
(
[
in
]
IAudioSessionControl
*
NewSession
)
;
}
;
[
local
,
uuid
(
e2f5bb11
-
0570
-
40
ca
-
acdd
-
3
aa01277dee8
),
pointer_default
(
unique
),
object
]
interface
IAudioSessionEnumerator
:
IUnknown
{
HRESULT
GetCount
(
[
out
]
INT
*
SessionCount
)
;
HRESULT
GetSession
(
[
in
]
INT
SessionCount
,
[
out
]
IAudioSessionControl
**
Session
)
;
}
;
[
local
,
uuid
(
77
aa99a0
-
1b
d6
-
484
f
-
8b
c7
-
2
c654c9a9b6f
),
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
)
;
}
;
cpp_quote
(
"#endif /*__audiopolicy_h__*/"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment