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
fcedc2b9
Commit
fcedc2b9
authored
Aug 20, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Support midi in ports too.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
25dcca4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
port.c
dlls/dmusic/port.c
+14
-8
No files found.
dlls/dmusic/port.c
View file @
fcedc2b9
...
...
@@ -1126,14 +1126,12 @@ static const IDirectMusicPortVtbl midi_port_vtbl = {
midi_IDirectMusicPort_GetFormat
,
};
HRESULT
midi_
out_port_create
(
IDirectMusic8Impl
*
parent
,
DMUS_PORTPARAMS
*
port_param
s
,
DMUS_PORTCAPS
*
port_caps
,
IDirectMusicPort
**
port
)
HRESULT
midi_
port_create
(
IDirectMusic8Impl
*
parent
,
DMUS_PORTPARAMS
*
params
,
DMUS_PORTCAPS
*
cap
s
,
IDirectMusicPort
**
port
)
{
struct
midi_port
*
obj
;
HRESULT
hr
;
TRACE
(
"(%p, %p, %p)
\n
"
,
port_params
,
port_caps
,
port
);
if
(
!
(
obj
=
heap_alloc_zero
(
sizeof
(
*
obj
))))
return
E_OUTOFMEMORY
;
...
...
@@ -1151,10 +1149,18 @@ HRESULT midi_out_port_create(IDirectMusic8Impl *parent, DMUS_PORTPARAMS *port_pa
return
S_OK
;
}
HRESULT
midi_
in_port_create
(
IDirectMusic8Impl
*
parent
,
DMUS_PORTPARAMS
*
port_
params
,
DMUS_PORTCAPS
*
port_
caps
,
IDirectMusicPort
**
port
)
HRESULT
midi_
out_port_create
(
IDirectMusic8Impl
*
parent
,
DMUS_PORTPARAMS
*
params
,
DMUS_PORTCAPS
*
caps
,
IDirectMusicPort
**
port
)
{
FIXME
(
"(%p, %p, %p): stub
\n
"
,
port_params
,
port_
caps
,
port
);
TRACE
(
"(%p, %p, %p, %p)
\n
"
,
parent
,
params
,
caps
,
port
);
return
E_NOTIMPL
;
return
midi_port_create
(
parent
,
params
,
caps
,
port
);
}
HRESULT
midi_in_port_create
(
IDirectMusic8Impl
*
parent
,
DMUS_PORTPARAMS
*
params
,
DMUS_PORTCAPS
*
caps
,
IDirectMusicPort
**
port
)
{
TRACE
(
"(%p, %p, %p, %p)
\n
"
,
parent
,
params
,
caps
,
port
);
return
midi_port_create
(
parent
,
params
,
caps
,
port
);
}
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