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
8d9c1272
Commit
8d9c1272
authored
Apr 22, 2023
by
Davide Beatrici
Committed by
Alexandre Julliard
Apr 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winepulse: Use dedicated macros to call interface functions.
parent
22018db1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
mmdevdrv.c
dlls/winepulse.drv/mmdevdrv.c
+8
-8
No files found.
dlls/winepulse.drv/mmdevdrv.c
View file @
8d9c1272
...
...
@@ -1391,13 +1391,13 @@ static HRESULT WINAPI AudioRenderClient_QueryInterface(
static
ULONG
WINAPI
AudioRenderClient_AddRef
(
IAudioRenderClient
*
iface
)
{
ACImpl
*
This
=
impl_from_IAudioRenderClient
(
iface
);
return
AudioClient
_AddRef
(
&
This
->
IAudioClient3_iface
);
return
IAudioClient3
_AddRef
(
&
This
->
IAudioClient3_iface
);
}
static
ULONG
WINAPI
AudioRenderClient_Release
(
IAudioRenderClient
*
iface
)
{
ACImpl
*
This
=
impl_from_IAudioRenderClient
(
iface
);
return
AudioClient
_Release
(
&
This
->
IAudioClient3_iface
);
return
IAudioClient3
_Release
(
&
This
->
IAudioClient3_iface
);
}
static
HRESULT
WINAPI
AudioRenderClient_GetBuffer
(
IAudioRenderClient
*
iface
,
...
...
@@ -1886,7 +1886,7 @@ static AudioSessionWrapper *AudioSessionWrapper_Create(ACImpl *client)
ret
->
client
=
client
;
if
(
client
)
{
ret
->
session
=
client
->
session
;
AudioClient
_AddRef
(
&
client
->
IAudioClient3_iface
);
IAudioClient3
_AddRef
(
&
client
->
IAudioClient3_iface
);
}
return
ret
;
...
...
@@ -1932,7 +1932,7 @@ static ULONG WINAPI AudioSessionControl_Release(IAudioSessionControl2 *iface)
if
(
!
ref
)
{
if
(
This
->
client
)
{
This
->
client
->
session_wrapper
=
NULL
;
AudioClient
_Release
(
&
This
->
client
->
IAudioClient3_iface
);
IAudioClient3
_Release
(
&
This
->
client
->
IAudioClient3_iface
);
}
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -2156,13 +2156,13 @@ static HRESULT WINAPI SimpleAudioVolume_QueryInterface(
static
ULONG
WINAPI
SimpleAudioVolume_AddRef
(
ISimpleAudioVolume
*
iface
)
{
AudioSessionWrapper
*
This
=
impl_from_ISimpleAudioVolume
(
iface
);
return
AudioSessionControl
_AddRef
(
&
This
->
IAudioSessionControl2_iface
);
return
IAudioSessionControl2
_AddRef
(
&
This
->
IAudioSessionControl2_iface
);
}
static
ULONG
WINAPI
SimpleAudioVolume_Release
(
ISimpleAudioVolume
*
iface
)
{
AudioSessionWrapper
*
This
=
impl_from_ISimpleAudioVolume
(
iface
);
return
AudioSessionControl
_Release
(
&
This
->
IAudioSessionControl2_iface
);
return
IAudioSessionControl2
_Release
(
&
This
->
IAudioSessionControl2_iface
);
}
static
HRESULT
WINAPI
SimpleAudioVolume_SetMasterVolume
(
...
...
@@ -2279,13 +2279,13 @@ static HRESULT WINAPI ChannelAudioVolume_QueryInterface(
static
ULONG
WINAPI
ChannelAudioVolume_AddRef
(
IChannelAudioVolume
*
iface
)
{
AudioSessionWrapper
*
This
=
impl_from_IChannelAudioVolume
(
iface
);
return
AudioSessionControl
_AddRef
(
&
This
->
IAudioSessionControl2_iface
);
return
IAudioSessionControl2
_AddRef
(
&
This
->
IAudioSessionControl2_iface
);
}
static
ULONG
WINAPI
ChannelAudioVolume_Release
(
IChannelAudioVolume
*
iface
)
{
AudioSessionWrapper
*
This
=
impl_from_IChannelAudioVolume
(
iface
);
return
AudioSessionControl
_Release
(
&
This
->
IAudioSessionControl2_iface
);
return
IAudioSessionControl2
_Release
(
&
This
->
IAudioSessionControl2_iface
);
}
static
HRESULT
WINAPI
ChannelAudioVolume_GetChannelCount
(
...
...
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