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
1481d11f
Commit
1481d11f
authored
Sep 18, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Sep 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Rename params in DMUSIC_CreateSynthPortImpl.
parent
7844c1ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
52 deletions
+54
-52
port.c
dlls/dmusic/port.c
+54
-52
No files found.
dlls/dmusic/port.c
View file @
1481d11f
...
@@ -472,63 +472,65 @@ static const IDirectMusicThruVtbl SynthPortImpl_DirectMusicThru_Vtbl = {
...
@@ -472,63 +472,65 @@ static const IDirectMusicThruVtbl SynthPortImpl_DirectMusicThru_Vtbl = {
SynthPortImpl_IDirectMusicThru_ThruChannel
SynthPortImpl_IDirectMusicThru_ThruChannel
};
};
HRESULT
DMUSIC_CreateSynthPortImpl
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
,
LPDMUS_PORTPARAMS
pPortParams
,
LPDMUS_PORTCAPS
pPortC
aps
,
DWORD
device
)
HRESULT
DMUSIC_CreateSynthPortImpl
(
LPCGUID
guid
,
LPVOID
*
object
,
LPUNKNOWN
unkouter
,
LPDMUS_PORTPARAMS
port_params
,
LPDMUS_PORTCAPS
port_c
aps
,
DWORD
device
)
{
{
SynthPortImpl
*
obj
;
SynthPortImpl
*
obj
;
HRESULT
hr
=
E_FAIL
;
HRESULT
hr
=
E_FAIL
;
UINT
j
;
UINT
i
;
TRACE
(
"(%p,%p,%p,%d)
\n
"
,
lpcGUID
,
ppobj
,
pUnkOuter
,
device
);
TRACE
(
"(%p,%p,%p,%p,%p%d)
\n
"
,
guid
,
object
,
unkouter
,
port_params
,
port_caps
,
device
);
obj
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
SynthPortImpl
));
obj
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
SynthPortImpl
));
if
(
NULL
==
obj
)
{
if
(
!
obj
)
{
*
ppobj
=
NULL
;
*
object
=
NULL
;
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
}
}
obj
->
IDirectMusicPort_iface
.
lpVtbl
=
&
SynthPortImpl_DirectMusicPort_Vtbl
;
obj
->
IDirectMusicPortDownload_iface
.
lpVtbl
=
&
SynthPortImpl_DirectMusicPortDownload_Vtbl
;
obj
->
IDirectMusicThru_iface
.
lpVtbl
=
&
SynthPortImpl_DirectMusicThru_Vtbl
;
obj
->
ref
=
0
;
/* will be inited by QueryInterface */
obj
->
fActive
=
FALSE
;
obj
->
params
=
*
pPortParams
;
obj
->
caps
=
*
pPortCaps
;
obj
->
pDirectSound
=
NULL
;
obj
->
pLatencyClock
=
NULL
;
hr
=
DMUSIC_CreateReferenceClockImpl
(
&
IID_IReferenceClock
,
(
LPVOID
*
)
&
obj
->
pLatencyClock
,
NULL
);
if
(
hr
!=
S_OK
)
{
HeapFree
(
GetProcessHeap
(),
0
,
obj
);
return
hr
;
}
if
(
0
)
obj
->
IDirectMusicPort_iface
.
lpVtbl
=
&
SynthPortImpl_DirectMusicPort_Vtbl
;
{
obj
->
IDirectMusicPortDownload_iface
.
lpVtbl
=
&
SynthPortImpl_DirectMusicPortDownload_Vtbl
;
if
(
pPortParams
->
dwValidParams
&
DMUS_PORTPARAMS_CHANNELGROUPS
)
{
obj
->
IDirectMusicThru_iface
.
lpVtbl
=
&
SynthPortImpl_DirectMusicThru_Vtbl
;
obj
->
nrofgroups
=
pPortParams
->
dwChannelGroups
;
obj
->
ref
=
0
;
/* Will be inited by QueryInterface */
/* setting default priorities */
obj
->
fActive
=
FALSE
;
for
(
j
=
0
;
j
<
obj
->
nrofgroups
;
j
++
)
{
obj
->
params
=
*
port_params
;
TRACE
(
"Setting default channel priorities on channel group %i
\n
"
,
j
+
1
);
obj
->
caps
=
*
port_caps
;
obj
->
group
[
j
].
channel
[
0
].
priority
=
DAUD_CHAN1_DEF_VOICE_PRIORITY
;
obj
->
pDirectSound
=
NULL
;
obj
->
group
[
j
].
channel
[
1
].
priority
=
DAUD_CHAN2_DEF_VOICE_PRIORITY
;
obj
->
pLatencyClock
=
NULL
;
obj
->
group
[
j
].
channel
[
2
].
priority
=
DAUD_CHAN3_DEF_VOICE_PRIORITY
;
hr
=
DMUSIC_CreateReferenceClockImpl
(
&
IID_IReferenceClock
,
(
LPVOID
*
)
&
obj
->
pLatencyClock
,
NULL
);
obj
->
group
[
j
].
channel
[
3
].
priority
=
DAUD_CHAN4_DEF_VOICE_PRIORITY
;
if
(
hr
!=
S_OK
)
obj
->
group
[
j
].
channel
[
4
].
priority
=
DAUD_CHAN5_DEF_VOICE_PRIORITY
;
{
obj
->
group
[
j
].
channel
[
5
].
priority
=
DAUD_CHAN6_DEF_VOICE_PRIORITY
;
HeapFree
(
GetProcessHeap
(),
0
,
obj
);
obj
->
group
[
j
].
channel
[
6
].
priority
=
DAUD_CHAN7_DEF_VOICE_PRIORITY
;
*
object
=
NULL
;
obj
->
group
[
j
].
channel
[
7
].
priority
=
DAUD_CHAN8_DEF_VOICE_PRIORITY
;
return
hr
;
obj
->
group
[
j
].
channel
[
8
].
priority
=
DAUD_CHAN9_DEF_VOICE_PRIORITY
;
}
obj
->
group
[
j
].
channel
[
9
].
priority
=
DAUD_CHAN10_DEF_VOICE_PRIORITY
;
obj
->
group
[
j
].
channel
[
10
].
priority
=
DAUD_CHAN11_DEF_VOICE_PRIORITY
;
if
(
0
)
obj
->
group
[
j
].
channel
[
11
].
priority
=
DAUD_CHAN12_DEF_VOICE_PRIORITY
;
{
obj
->
group
[
j
].
channel
[
12
].
priority
=
DAUD_CHAN13_DEF_VOICE_PRIORITY
;
if
(
port_params
->
dwValidParams
&
DMUS_PORTPARAMS_CHANNELGROUPS
)
{
obj
->
group
[
j
].
channel
[
13
].
priority
=
DAUD_CHAN14_DEF_VOICE_PRIORITY
;
obj
->
nrofgroups
=
port_params
->
dwChannelGroups
;
obj
->
group
[
j
].
channel
[
14
].
priority
=
DAUD_CHAN15_DEF_VOICE_PRIORITY
;
/* Setting default priorities */
obj
->
group
[
j
].
channel
[
15
].
priority
=
DAUD_CHAN16_DEF_VOICE_PRIORITY
;
for
(
i
=
0
;
i
<
obj
->
nrofgroups
;
i
++
)
{
}
TRACE
(
"Setting default channel priorities on channel group %i
\n
"
,
i
+
1
);
}
obj
->
group
[
i
].
channel
[
0
].
priority
=
DAUD_CHAN1_DEF_VOICE_PRIORITY
;
}
obj
->
group
[
i
].
channel
[
1
].
priority
=
DAUD_CHAN2_DEF_VOICE_PRIORITY
;
obj
->
group
[
i
].
channel
[
2
].
priority
=
DAUD_CHAN3_DEF_VOICE_PRIORITY
;
obj
->
group
[
i
].
channel
[
3
].
priority
=
DAUD_CHAN4_DEF_VOICE_PRIORITY
;
obj
->
group
[
i
].
channel
[
4
].
priority
=
DAUD_CHAN5_DEF_VOICE_PRIORITY
;
obj
->
group
[
i
].
channel
[
5
].
priority
=
DAUD_CHAN6_DEF_VOICE_PRIORITY
;
obj
->
group
[
i
].
channel
[
6
].
priority
=
DAUD_CHAN7_DEF_VOICE_PRIORITY
;
obj
->
group
[
i
].
channel
[
7
].
priority
=
DAUD_CHAN8_DEF_VOICE_PRIORITY
;
obj
->
group
[
i
].
channel
[
8
].
priority
=
DAUD_CHAN9_DEF_VOICE_PRIORITY
;
obj
->
group
[
i
].
channel
[
9
].
priority
=
DAUD_CHAN10_DEF_VOICE_PRIORITY
;
obj
->
group
[
i
].
channel
[
10
].
priority
=
DAUD_CHAN11_DEF_VOICE_PRIORITY
;
obj
->
group
[
i
].
channel
[
11
].
priority
=
DAUD_CHAN12_DEF_VOICE_PRIORITY
;
obj
->
group
[
i
].
channel
[
12
].
priority
=
DAUD_CHAN13_DEF_VOICE_PRIORITY
;
obj
->
group
[
i
].
channel
[
13
].
priority
=
DAUD_CHAN14_DEF_VOICE_PRIORITY
;
obj
->
group
[
i
].
channel
[
14
].
priority
=
DAUD_CHAN15_DEF_VOICE_PRIORITY
;
obj
->
group
[
i
].
channel
[
15
].
priority
=
DAUD_CHAN16_DEF_VOICE_PRIORITY
;
}
}
}
return
IDirectMusicPort_QueryInterface
((
LPDIRECTMUSICPORT
)
obj
,
lpcGUID
,
ppobj
);
return
IDirectMusicPort_QueryInterface
((
LPDIRECTMUSICPORT
)
obj
,
guid
,
object
);
}
}
HRESULT
DMUSIC_CreateMidiOutPortImpl
(
LPCGUID
guid
,
LPVOID
*
object
,
LPUNKNOWN
unkouter
,
LPDMUS_PORTPARAMS
port_params
,
LPDMUS_PORTCAPS
port_caps
,
DWORD
device
)
HRESULT
DMUSIC_CreateMidiOutPortImpl
(
LPCGUID
guid
,
LPVOID
*
object
,
LPUNKNOWN
unkouter
,
LPDMUS_PORTPARAMS
port_params
,
LPDMUS_PORTCAPS
port_caps
,
DWORD
device
)
...
...
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