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
d0887f55
Commit
d0887f55
authored
Jan 26, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Avoid the LPDIRECTMUSICSYNTHSINK type.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1867a411
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
synthsink.c
dlls/dmsynth/synthsink.c
+20
-11
No files found.
dlls/dmsynth/synthsink.c
View file @
d0887f55
...
...
@@ -33,7 +33,8 @@ static inline IDirectMusicSynthSinkImpl *impl_from_IDirectMusicSynthSink(IDirect
}
/* IDirectMusicSynthSinkImpl IUnknown part: */
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_QueryInterface
(
LPDIRECTMUSICSYNTHSINK
iface
,
REFIID
riid
,
LPVOID
*
ret_iface
)
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_QueryInterface
(
IDirectMusicSynthSink
*
iface
,
REFIID
riid
,
void
**
ret_iface
)
{
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
...
...
@@ -60,7 +61,7 @@ static HRESULT WINAPI IDirectMusicSynthSinkImpl_QueryInterface(LPDIRECTMUSICSYNT
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
IDirectMusicSynthSinkImpl_AddRef
(
LPDIRECTMUSICSYNTHSINK
iface
)
static
ULONG
WINAPI
IDirectMusicSynthSinkImpl_AddRef
(
IDirectMusicSynthSink
*
iface
)
{
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -70,7 +71,7 @@ static ULONG WINAPI IDirectMusicSynthSinkImpl_AddRef(LPDIRECTMUSICSYNTHSINK ifac
return
ref
;
}
static
ULONG
WINAPI
IDirectMusicSynthSinkImpl_Release
(
LPDIRECTMUSICSYNTHSINK
iface
)
static
ULONG
WINAPI
IDirectMusicSynthSinkImpl_Release
(
IDirectMusicSynthSink
*
iface
)
{
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -88,7 +89,8 @@ static ULONG WINAPI IDirectMusicSynthSinkImpl_Release(LPDIRECTMUSICSYNTHSINK ifa
}
/* IDirectMusicSynthSinkImpl IDirectMusicSynthSink part: */
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_Init
(
LPDIRECTMUSICSYNTHSINK
iface
,
IDirectMusicSynth
*
synth
)
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_Init
(
IDirectMusicSynthSink
*
iface
,
IDirectMusicSynth
*
synth
)
{
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
...
...
@@ -97,7 +99,8 @@ static HRESULT WINAPI IDirectMusicSynthSinkImpl_Init(LPDIRECTMUSICSYNTHSINK ifac
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_SetMasterClock
(
LPDIRECTMUSICSYNTHSINK
iface
,
IReferenceClock
*
clock
)
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_SetMasterClock
(
IDirectMusicSynthSink
*
iface
,
IReferenceClock
*
clock
)
{
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
...
...
@@ -106,7 +109,8 @@ static HRESULT WINAPI IDirectMusicSynthSinkImpl_SetMasterClock(LPDIRECTMUSICSYNT
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_GetLatencyClock
(
LPDIRECTMUSICSYNTHSINK
iface
,
IReferenceClock
**
clock
)
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_GetLatencyClock
(
IDirectMusicSynthSink
*
iface
,
IReferenceClock
**
clock
)
{
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
...
...
@@ -121,7 +125,8 @@ static HRESULT WINAPI IDirectMusicSynthSinkImpl_GetLatencyClock(LPDIRECTMUSICSYN
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_Activate
(
LPDIRECTMUSICSYNTHSINK
iface
,
BOOL
enable
)
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_Activate
(
IDirectMusicSynthSink
*
iface
,
BOOL
enable
)
{
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
...
...
@@ -130,7 +135,8 @@ static HRESULT WINAPI IDirectMusicSynthSinkImpl_Activate(LPDIRECTMUSICSYNTHSINK
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_SampleToRefTime
(
LPDIRECTMUSICSYNTHSINK
iface
,
LONGLONG
sample_time
,
REFERENCE_TIME
*
ref_time
)
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_SampleToRefTime
(
IDirectMusicSynthSink
*
iface
,
LONGLONG
sample_time
,
REFERENCE_TIME
*
ref_time
)
{
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
...
...
@@ -139,7 +145,8 @@ static HRESULT WINAPI IDirectMusicSynthSinkImpl_SampleToRefTime(LPDIRECTMUSICSYN
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_RefTimeToSample
(
LPDIRECTMUSICSYNTHSINK
iface
,
REFERENCE_TIME
ref_time
,
LONGLONG
*
sample_time
)
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_RefTimeToSample
(
IDirectMusicSynthSink
*
iface
,
REFERENCE_TIME
ref_time
,
LONGLONG
*
sample_time
)
{
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
...
...
@@ -148,7 +155,8 @@ static HRESULT WINAPI IDirectMusicSynthSinkImpl_RefTimeToSample(LPDIRECTMUSICSYN
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_SetDirectSound
(
LPDIRECTMUSICSYNTHSINK
iface
,
LPDIRECTSOUND
dsound
,
LPDIRECTSOUNDBUFFER
dsound_buffer
)
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_SetDirectSound
(
IDirectMusicSynthSink
*
iface
,
IDirectSound
*
dsound
,
IDirectSoundBuffer
*
dsound_buffer
)
{
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
...
...
@@ -157,7 +165,8 @@ static HRESULT WINAPI IDirectMusicSynthSinkImpl_SetDirectSound(LPDIRECTMUSICSYNT
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_GetDesiredBufferSize
(
LPDIRECTMUSICSYNTHSINK
iface
,
LPDWORD
buffer_size_in_samples
)
static
HRESULT
WINAPI
IDirectMusicSynthSinkImpl_GetDesiredBufferSize
(
IDirectMusicSynthSink
*
iface
,
DWORD
*
buffer_size_in_samples
)
{
IDirectMusicSynthSinkImpl
*
This
=
impl_from_IDirectMusicSynthSink
(
iface
);
...
...
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