Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c0884c02
Commit
c0884c02
authored
Apr 12, 2023
by
Davide Beatrici
Committed by
Alexandre Julliard
Apr 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winepulse: Remove AudioSessionManager.
parent
03f7d797
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
172 deletions
+0
-172
mmdevdrv.c
dlls/winepulse.drv/mmdevdrv.c
+0
-171
winepulse.drv.spec
dlls/winepulse.drv/winepulse.drv.spec
+0
-1
No files found.
dlls/winepulse.drv/mmdevdrv.c
View file @
c0884c02
...
...
@@ -2122,163 +2122,6 @@ static const IAudioSessionControl2Vtbl AudioSessionControl2_Vtbl =
AudioSessionControl_SetDuckingPreference
};
static
HRESULT
WINAPI
AudioSessionManager_QueryInterface
(
IAudioSessionManager2
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
TRACE
(
"(%p)->(%s, %p)
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppv
);
if
(
!
ppv
)
return
E_POINTER
;
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IAudioSessionManager
)
||
IsEqualIID
(
riid
,
&
IID_IAudioSessionManager2
))
*
ppv
=
iface
;
if
(
*
ppv
)
{
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
WARN
(
"Unknown interface %s
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
static
inline
SessionMgr
*
impl_from_IAudioSessionManager2
(
IAudioSessionManager2
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
SessionMgr
,
IAudioSessionManager2_iface
);
}
static
ULONG
WINAPI
AudioSessionManager_AddRef
(
IAudioSessionManager2
*
iface
)
{
SessionMgr
*
This
=
impl_from_IAudioSessionManager2
(
iface
);
ULONG
ref
;
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) Refcount now %lu
\n
"
,
This
,
ref
);
return
ref
;
}
static
ULONG
WINAPI
AudioSessionManager_Release
(
IAudioSessionManager2
*
iface
)
{
SessionMgr
*
This
=
impl_from_IAudioSessionManager2
(
iface
);
ULONG
ref
;
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) Refcount now %lu
\n
"
,
This
,
ref
);
if
(
!
ref
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
ref
;
}
static
HRESULT
WINAPI
AudioSessionManager_GetAudioSessionControl
(
IAudioSessionManager2
*
iface
,
const
GUID
*
session_guid
,
DWORD
flags
,
IAudioSessionControl
**
out
)
{
SessionMgr
*
This
=
impl_from_IAudioSessionManager2
(
iface
);
AudioSession
*
session
;
AudioSessionWrapper
*
wrapper
;
HRESULT
hr
;
TRACE
(
"(%p)->(%s, %lx, %p)
\n
"
,
This
,
debugstr_guid
(
session_guid
),
flags
,
out
);
hr
=
get_audio_session
(
session_guid
,
This
->
device
,
0
,
&
session
);
if
(
FAILED
(
hr
))
return
hr
;
wrapper
=
AudioSessionWrapper_Create
(
NULL
);
if
(
!
wrapper
)
return
E_OUTOFMEMORY
;
wrapper
->
session
=
session
;
*
out
=
(
IAudioSessionControl
*
)
&
wrapper
->
IAudioSessionControl2_iface
;
return
S_OK
;
}
static
HRESULT
WINAPI
AudioSessionManager_GetSimpleAudioVolume
(
IAudioSessionManager2
*
iface
,
const
GUID
*
session_guid
,
DWORD
flags
,
ISimpleAudioVolume
**
out
)
{
SessionMgr
*
This
=
impl_from_IAudioSessionManager2
(
iface
);
AudioSession
*
session
;
AudioSessionWrapper
*
wrapper
;
HRESULT
hr
;
TRACE
(
"(%p)->(%s, %lx, %p)
\n
"
,
This
,
debugstr_guid
(
session_guid
),
flags
,
out
);
hr
=
get_audio_session
(
session_guid
,
This
->
device
,
0
,
&
session
);
if
(
FAILED
(
hr
))
return
hr
;
wrapper
=
AudioSessionWrapper_Create
(
NULL
);
if
(
!
wrapper
)
return
E_OUTOFMEMORY
;
wrapper
->
session
=
session
;
*
out
=
&
wrapper
->
ISimpleAudioVolume_iface
;
return
S_OK
;
}
static
HRESULT
WINAPI
AudioSessionManager_GetSessionEnumerator
(
IAudioSessionManager2
*
iface
,
IAudioSessionEnumerator
**
out
)
{
SessionMgr
*
This
=
impl_from_IAudioSessionManager2
(
iface
);
FIXME
(
"(%p)->(%p) - stub
\n
"
,
This
,
out
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
AudioSessionManager_RegisterSessionNotification
(
IAudioSessionManager2
*
iface
,
IAudioSessionNotification
*
notification
)
{
SessionMgr
*
This
=
impl_from_IAudioSessionManager2
(
iface
);
FIXME
(
"(%p)->(%p) - stub
\n
"
,
This
,
notification
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
AudioSessionManager_UnregisterSessionNotification
(
IAudioSessionManager2
*
iface
,
IAudioSessionNotification
*
notification
)
{
SessionMgr
*
This
=
impl_from_IAudioSessionManager2
(
iface
);
FIXME
(
"(%p)->(%p) - stub
\n
"
,
This
,
notification
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
AudioSessionManager_RegisterDuckNotification
(
IAudioSessionManager2
*
iface
,
const
WCHAR
*
session_id
,
IAudioVolumeDuckNotification
*
notification
)
{
SessionMgr
*
This
=
impl_from_IAudioSessionManager2
(
iface
);
FIXME
(
"(%p)->(%p) - stub
\n
"
,
This
,
notification
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
AudioSessionManager_UnregisterDuckNotification
(
IAudioSessionManager2
*
iface
,
IAudioVolumeDuckNotification
*
notification
)
{
SessionMgr
*
This
=
impl_from_IAudioSessionManager2
(
iface
);
FIXME
(
"(%p)->(%p) - stub
\n
"
,
This
,
notification
);
return
E_NOTIMPL
;
}
static
const
IAudioSessionManager2Vtbl
AudioSessionManager2_Vtbl
=
{
AudioSessionManager_QueryInterface
,
AudioSessionManager_AddRef
,
AudioSessionManager_Release
,
AudioSessionManager_GetAudioSessionControl
,
AudioSessionManager_GetSimpleAudioVolume
,
AudioSessionManager_GetSessionEnumerator
,
AudioSessionManager_RegisterSessionNotification
,
AudioSessionManager_UnregisterSessionNotification
,
AudioSessionManager_RegisterDuckNotification
,
AudioSessionManager_UnregisterDuckNotification
};
static
HRESULT
WINAPI
SimpleAudioVolume_QueryInterface
(
ISimpleAudioVolume
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
...
...
@@ -2566,20 +2409,6 @@ static const IChannelAudioVolumeVtbl ChannelAudioVolume_Vtbl =
ChannelAudioVolume_GetAllVolumes
};
HRESULT
WINAPI
AUDDRV_GetAudioSessionManager
(
IMMDevice
*
device
,
IAudioSessionManager2
**
out
)
{
SessionMgr
*
This
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
SessionMgr
));
*
out
=
NULL
;
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
IAudioSessionManager2_iface
.
lpVtbl
=
&
AudioSessionManager2_Vtbl
;
This
->
device
=
device
;
This
->
ref
=
1
;
*
out
=
&
This
->
IAudioSessionManager2_iface
;
return
S_OK
;
}
HRESULT
WINAPI
AUDDRV_GetAudioSessionWrapper
(
const
GUID
*
guid
,
IMMDevice
*
device
,
AudioSessionWrapper
**
out
)
{
...
...
dlls/winepulse.drv/winepulse.drv.spec
View file @
c0884c02
# MMDevAPI driver functions
@ stdcall -private GetEndpointIDs(long ptr ptr ptr ptr) AUDDRV_GetEndpointIDs
@ stdcall -private GetAudioEndpoint(ptr ptr ptr) AUDDRV_GetAudioEndpoint
@ stdcall -private GetAudioSessionManager(ptr ptr) AUDDRV_GetAudioSessionManager
@ stdcall -private GetAudioSessionWrapper(ptr ptr ptr) AUDDRV_GetAudioSessionWrapper
@ stdcall -private GetPropValue(ptr ptr ptr) AUDDRV_GetPropValue
...
...
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