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
00eaccda
Commit
00eaccda
authored
Jan 19, 2022
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Avoid hungarian notation in the synth object.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5d687a23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
dmsynth_private.h
dlls/dmsynth/dmsynth_private.h
+2
-2
synth.c
dlls/dmsynth/synth.c
+17
-17
No files found.
dlls/dmsynth/dmsynth_private.h
View file @
00eaccda
...
@@ -62,9 +62,9 @@ struct IDirectMusicSynth8Impl {
...
@@ -62,9 +62,9 @@ struct IDirectMusicSynth8Impl {
LONG
ref
;
LONG
ref
;
/* IDirectMusicSynth8 fields */
/* IDirectMusicSynth8 fields */
DMUS_PORTCAPS
pC
aps
;
DMUS_PORTCAPS
c
aps
;
BOOL
active
;
BOOL
active
;
IReferenceClock
*
pLatencyC
lock
;
IReferenceClock
*
latency_c
lock
;
IDirectMusicSynthSink
*
sink
;
IDirectMusicSynthSink
*
sink
;
};
};
...
...
dlls/dmsynth/synth.c
View file @
00eaccda
...
@@ -84,8 +84,8 @@ static ULONG WINAPI IDirectMusicSynth8Impl_Release(IDirectMusicSynth8 *iface)
...
@@ -84,8 +84,8 @@ static ULONG WINAPI IDirectMusicSynth8Impl_Release(IDirectMusicSynth8 *iface)
TRACE
(
"(%p)->(): new ref = %u
\n
"
,
This
,
ref
);
TRACE
(
"(%p)->(): new ref = %u
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
if
(
!
ref
)
{
if
(
This
->
pLatencyC
lock
)
if
(
This
->
latency_c
lock
)
IReferenceClock_Release
(
This
->
pLatencyC
lock
);
IReferenceClock_Release
(
This
->
latency_c
lock
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
DMSYNTH_UnlockModule
();
DMSYNTH_UnlockModule
();
}
}
...
@@ -295,7 +295,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_GetPortCaps(IDirectMusicSynth8 *ifa
...
@@ -295,7 +295,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_GetPortCaps(IDirectMusicSynth8 *ifa
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
caps
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
caps
);
*
caps
=
This
->
pC
aps
;
*
caps
=
This
->
c
aps
;
return
S_OK
;
return
S_OK
;
}
}
...
@@ -323,8 +323,8 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_GetLatencyClock(IDirectMusicSynth8
...
@@ -323,8 +323,8 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_GetLatencyClock(IDirectMusicSynth8
if
(
!
This
->
sink
)
if
(
!
This
->
sink
)
return
DMUS_E_NOSYNTHSINK
;
return
DMUS_E_NOSYNTHSINK
;
*
clock
=
This
->
pLatencyC
lock
;
*
clock
=
This
->
latency_c
lock
;
IReferenceClock_AddRef
(
This
->
pLatencyC
lock
);
IReferenceClock_AddRef
(
This
->
latency_c
lock
);
return
S_OK
;
return
S_OK
;
}
}
...
@@ -368,7 +368,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_SetSynthSink(IDirectMusicSynth8 *if
...
@@ -368,7 +368,7 @@ static HRESULT WINAPI IDirectMusicSynth8Impl_SetSynthSink(IDirectMusicSynth8 *if
This
->
sink
=
sink
;
This
->
sink
=
sink
;
if
(
sink
)
if
(
sink
)
return
IDirectMusicSynthSink_GetLatencyClock
(
sink
,
&
This
->
pLatencyC
lock
);
return
IDirectMusicSynthSink_GetLatencyClock
(
sink
,
&
This
->
latency_c
lock
);
return
S_OK
;
return
S_OK
;
}
}
...
@@ -627,17 +627,17 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicSynthImpl(REFIID riid, void **ppobj)
...
@@ -627,17 +627,17 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicSynthImpl(REFIID riid, void **ppobj)
obj
->
IKsControl_iface
.
lpVtbl
=
&
DMSynthImpl_IKsControl_Vtbl
;
obj
->
IKsControl_iface
.
lpVtbl
=
&
DMSynthImpl_IKsControl_Vtbl
;
obj
->
ref
=
1
;
obj
->
ref
=
1
;
/* fill in caps */
/* fill in caps */
obj
->
pC
aps
.
dwSize
=
sizeof
(
DMUS_PORTCAPS
);
obj
->
c
aps
.
dwSize
=
sizeof
(
DMUS_PORTCAPS
);
obj
->
pC
aps
.
dwFlags
=
DMUS_PC_DLS
|
DMUS_PC_SOFTWARESYNTH
|
DMUS_PC_DIRECTSOUND
|
DMUS_PC_DLS2
|
DMUS_PC_AUDIOPATH
|
DMUS_PC_WAVE
;
obj
->
c
aps
.
dwFlags
=
DMUS_PC_DLS
|
DMUS_PC_SOFTWARESYNTH
|
DMUS_PC_DIRECTSOUND
|
DMUS_PC_DLS2
|
DMUS_PC_AUDIOPATH
|
DMUS_PC_WAVE
;
obj
->
pC
aps
.
guidPort
=
CLSID_DirectMusicSynth
;
obj
->
c
aps
.
guidPort
=
CLSID_DirectMusicSynth
;
obj
->
pC
aps
.
dwClass
=
DMUS_PC_OUTPUTCLASS
;
obj
->
c
aps
.
dwClass
=
DMUS_PC_OUTPUTCLASS
;
obj
->
pC
aps
.
dwType
=
DMUS_PORT_USER_MODE_SYNTH
;
obj
->
c
aps
.
dwType
=
DMUS_PORT_USER_MODE_SYNTH
;
obj
->
pC
aps
.
dwMemorySize
=
DMUS_PC_SYSTEMMEMORY
;
obj
->
c
aps
.
dwMemorySize
=
DMUS_PC_SYSTEMMEMORY
;
obj
->
pC
aps
.
dwMaxChannelGroups
=
1000
;
obj
->
c
aps
.
dwMaxChannelGroups
=
1000
;
obj
->
pC
aps
.
dwMaxVoices
=
1000
;
obj
->
c
aps
.
dwMaxVoices
=
1000
;
obj
->
pC
aps
.
dwMaxAudioChannels
=
2
;
obj
->
c
aps
.
dwMaxAudioChannels
=
2
;
obj
->
pC
aps
.
dwEffectFlags
=
DMUS_EFFECT_REVERB
;
obj
->
c
aps
.
dwEffectFlags
=
DMUS_EFFECT_REVERB
;
lstrcpyW
(
obj
->
pC
aps
.
wszDescription
,
L"Microsoft Synthesizer"
);
lstrcpyW
(
obj
->
c
aps
.
wszDescription
,
L"Microsoft Synthesizer"
);
DMSYNTH_LockModule
();
DMSYNTH_LockModule
();
hr
=
IDirectMusicSynth8_QueryInterface
(
&
obj
->
IDirectMusicSynth8_iface
,
riid
,
ppobj
);
hr
=
IDirectMusicSynth8_QueryInterface
(
&
obj
->
IDirectMusicSynth8_iface
,
riid
,
ppobj
);
...
...
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