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
25dcca4b
Commit
25dcca4b
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: Implement IDirectMusicPort_GetLatencyClock() for the midi port.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8c48fba6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
port.c
dlls/dmusic/port.c
+22
-3
No files found.
dlls/dmusic/port.c
View file @
25dcca4b
...
...
@@ -907,6 +907,7 @@ HRESULT synth_port_create(IDirectMusic8Impl *parent, DMUS_PORTPARAMS *port_param
struct
midi_port
{
IDirectMusicPort
IDirectMusicPort_iface
;
LONG
ref
;
IReferenceClock
*
clock
;
};
static
inline
struct
midi_port
*
impl_from_IDirectMusicPort
(
IDirectMusicPort
*
iface
)
...
...
@@ -949,8 +950,11 @@ static ULONG WINAPI midi_IDirectMusicPort_Release(IDirectMusicPort *iface)
TRACE
(
"(%p) ref = %u
\n
"
,
iface
,
ref
);
if
(
!
ref
)
if
(
!
ref
)
{
if
(
This
->
clock
)
IReferenceClock_Release
(
This
->
clock
);
heap_free
(
This
);
}
return
ref
;
}
...
...
@@ -999,9 +1003,17 @@ static HRESULT WINAPI midi_IDirectMusicPort_UnloadInstrument(IDirectMusicPort *i
static
HRESULT
WINAPI
midi_IDirectMusicPort_GetLatencyClock
(
IDirectMusicPort
*
iface
,
IReferenceClock
**
clock
)
{
FIXME
(
"(%p, %p) stub!
\n
"
,
iface
,
clock
);
struct
midi_port
*
This
=
impl_from_IDirectMusicPort
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"(%p, %p)
\n
"
,
iface
,
clock
);
if
(
!
clock
)
return
E_POINTER
;
*
clock
=
This
->
clock
;
IReferenceClock_AddRef
(
*
clock
);
return
S_OK
;
}
static
HRESULT
WINAPI
midi_IDirectMusicPort_GetRunningStats
(
IDirectMusicPort
*
iface
,
...
...
@@ -1118,6 +1130,7 @@ HRESULT midi_out_port_create(IDirectMusic8Impl *parent, DMUS_PORTPARAMS *port_pa
DMUS_PORTCAPS
*
port_caps
,
IDirectMusicPort
**
port
)
{
struct
midi_port
*
obj
;
HRESULT
hr
;
TRACE
(
"(%p, %p, %p)
\n
"
,
port_params
,
port_caps
,
port
);
...
...
@@ -1127,6 +1140,12 @@ HRESULT midi_out_port_create(IDirectMusic8Impl *parent, DMUS_PORTPARAMS *port_pa
obj
->
IDirectMusicPort_iface
.
lpVtbl
=
&
midi_port_vtbl
;
obj
->
ref
=
1
;
hr
=
DMUSIC_CreateReferenceClockImpl
(
&
IID_IReferenceClock
,
(
void
**
)
&
obj
->
clock
,
NULL
);
if
(
hr
!=
S_OK
)
{
HeapFree
(
GetProcessHeap
(),
0
,
obj
);
return
hr
;
}
*
port
=
&
obj
->
IDirectMusicPort_iface
;
return
S_OK
;
...
...
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