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
dd1dc8cc
Commit
dd1dc8cc
authored
Jul 02, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: COM cleanup for IDirectMusicTrack of DMTimeSigTrack.
parent
5bf9d045
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
17 deletions
+22
-17
timesigtrack.c
dlls/dmime/timesigtrack.c
+22
-17
No files found.
dlls/dmime/timesigtrack.c
View file @
dd1dc8cc
...
...
@@ -26,7 +26,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dmime);
*/
typedef
struct
IDirectMusicTimeSigTrack
{
const
IUnknownVtbl
*
UnknownVtbl
;
const
IDirectMusicTrackVtbl
*
TrackVtbl
;
IDirectMusicTrack
IDirectMusicTrack_iface
;
const
IPersistStreamVtbl
*
PersistStreamVtbl
;
LONG
ref
;
DMUS_OBJECTDESC
*
pDesc
;
...
...
@@ -42,7 +42,7 @@ static HRESULT WINAPI IDirectMusicTimeSigTrack_IUnknown_QueryInterface (LPUNKNOW
IUnknown_AddRef
(
iface
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDirectMusicTrack
))
{
*
ppobj
=
&
This
->
TrackVtbl
;
*
ppobj
=
&
This
->
IDirectMusicTrack_iface
;
IUnknown_AddRef
(
iface
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IPersistStream
))
{
...
...
@@ -87,29 +87,34 @@ static const IUnknownVtbl DirectMusicTimeSigTrack_Unknown_Vtbl = {
};
/* IDirectMusicTimeSigTrack IDirectMusicTrack8 part: */
static
inline
IDirectMusicTimeSigTrack
*
impl_from_IDirectMusicTrack
(
IDirectMusicTrack
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDirectMusicTimeSigTrack
,
IDirectMusicTrack_iface
);
}
static
HRESULT
WINAPI
IDirectMusicTrackImpl_QueryInterface
(
IDirectMusicTrack
*
iface
,
REFIID
riid
,
void
**
ppobj
)
{
ICOM_THIS_MULTI
(
IDirectMusicTimeSigTrack
,
TrackVtbl
,
iface
);
IDirectMusicTimeSigTrack
*
This
=
impl_from_IDirectMusicTrack
(
iface
);
return
IUnknown_QueryInterface
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
,
riid
,
ppobj
);
}
static
ULONG
WINAPI
IDirectMusicTrackImpl_AddRef
(
IDirectMusicTrack
*
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicTimeSigTrack
,
TrackVtbl
,
iface
);
IDirectMusicTimeSigTrack
*
This
=
impl_from_IDirectMusicTrack
(
iface
);
return
IUnknown_AddRef
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
);
}
static
ULONG
WINAPI
IDirectMusicTrackImpl_Release
(
IDirectMusicTrack
*
iface
)
{
ICOM_THIS_MULTI
(
IDirectMusicTimeSigTrack
,
TrackVtbl
,
iface
);
IDirectMusicTimeSigTrack
*
This
=
impl_from_IDirectMusicTrack
(
iface
);
return
IUnknown_Release
((
LPUNKNOWN
)
&
This
->
UnknownVtbl
);
}
static
HRESULT
WINAPI
IDirectMusicTrackImpl_Init
(
IDirectMusicTrack
*
iface
,
IDirectMusicSegment
*
pSegment
)
{
ICOM_THIS_MULTI
(
IDirectMusicTimeSigTrack
,
TrackVtbl
,
iface
);
IDirectMusicTimeSigTrack
*
This
=
impl_from_IDirectMusicTrack
(
iface
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pSegment
);
return
S_OK
;
}
...
...
@@ -118,14 +123,14 @@ static HRESULT WINAPI IDirectMusicTrackImpl_InitPlay(IDirectMusicTrack *iface,
IDirectMusicSegmentState
*
pSegmentState
,
IDirectMusicPerformance
*
pPerformance
,
void
**
ppStateData
,
DWORD
dwVirtualTrack8ID
,
DWORD
dwFlags
)
{
ICOM_THIS_MULTI
(
IDirectMusicTimeSigTrack
,
TrackVtbl
,
iface
);
IDirectMusicTimeSigTrack
*
This
=
impl_from_IDirectMusicTrack
(
iface
);
FIXME
(
"(%p, %p, %p, %p, %d, %d): stub
\n
"
,
This
,
pSegmentState
,
pPerformance
,
ppStateData
,
dwVirtualTrack8ID
,
dwFlags
);
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectMusicTrackImpl_EndPlay
(
IDirectMusicTrack
*
iface
,
void
*
pStateData
)
{
ICOM_THIS_MULTI
(
IDirectMusicTimeSigTrack
,
TrackVtbl
,
iface
);
IDirectMusicTimeSigTrack
*
This
=
impl_from_IDirectMusicTrack
(
iface
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
pStateData
);
return
S_OK
;
}
...
...
@@ -134,7 +139,7 @@ static HRESULT WINAPI IDirectMusicTrackImpl_Play(IDirectMusicTrack *iface, void
MUSIC_TIME
mtStart
,
MUSIC_TIME
mtEnd
,
MUSIC_TIME
mtOffset
,
DWORD
dwFlags
,
IDirectMusicPerformance
*
pPerf
,
IDirectMusicSegmentState
*
pSegSt
,
DWORD
dwVirtualID
)
{
ICOM_THIS_MULTI
(
IDirectMusicTimeSigTrack
,
TrackVtbl
,
iface
);
IDirectMusicTimeSigTrack
*
This
=
impl_from_IDirectMusicTrack
(
iface
);
FIXME
(
"(%p, %p, %d, %d, %d, %d, %p, %p, %d): stub
\n
"
,
This
,
pStateData
,
mtStart
,
mtEnd
,
mtOffset
,
dwFlags
,
pPerf
,
pSegSt
,
dwVirtualID
);
return
S_OK
;
}
...
...
@@ -142,7 +147,7 @@ static HRESULT WINAPI IDirectMusicTrackImpl_Play(IDirectMusicTrack *iface, void
static
HRESULT
WINAPI
IDirectMusicTrackImpl_GetParam
(
IDirectMusicTrack
*
iface
,
REFGUID
rguidType
,
MUSIC_TIME
mtTime
,
MUSIC_TIME
*
pmtNext
,
void
*
pParam
)
{
ICOM_THIS_MULTI
(
IDirectMusicTimeSigTrack
,
TrackVtbl
,
iface
);
IDirectMusicTimeSigTrack
*
This
=
impl_from_IDirectMusicTrack
(
iface
);
FIXME
(
"(%p, %s, %d, %p, %p): stub
\n
"
,
This
,
debugstr_dmguid
(
rguidType
),
mtTime
,
pmtNext
,
pParam
);
return
S_OK
;
}
...
...
@@ -150,7 +155,7 @@ static HRESULT WINAPI IDirectMusicTrackImpl_GetParam(IDirectMusicTrack *iface, R
static
HRESULT
WINAPI
IDirectMusicTrackImpl_SetParam
(
IDirectMusicTrack
*
iface
,
REFGUID
rguidType
,
MUSIC_TIME
mtTime
,
void
*
pParam
)
{
ICOM_THIS_MULTI
(
IDirectMusicTimeSigTrack
,
TrackVtbl
,
iface
);
IDirectMusicTimeSigTrack
*
This
=
impl_from_IDirectMusicTrack
(
iface
);
FIXME
(
"(%p, %s, %d, %p): stub
\n
"
,
This
,
debugstr_dmguid
(
rguidType
),
mtTime
,
pParam
);
return
S_OK
;
}
...
...
@@ -158,7 +163,7 @@ static HRESULT WINAPI IDirectMusicTrackImpl_SetParam(IDirectMusicTrack *iface, R
static
HRESULT
WINAPI
IDirectMusicTrackImpl_IsParamSupported
(
IDirectMusicTrack
*
iface
,
REFGUID
rguidType
)
{
ICOM_THIS_MULTI
(
IDirectMusicTimeSigTrack
,
TrackVtbl
,
iface
);
IDirectMusicTimeSigTrack
*
This
=
impl_from_IDirectMusicTrack
(
iface
);
TRACE
(
"(%p, %s)
\n
"
,
This
,
debugstr_dmguid
(
rguidType
));
if
(
IsEqualGUID
(
rguidType
,
&
GUID_DisableTimeSig
)
...
...
@@ -174,7 +179,7 @@ static HRESULT WINAPI IDirectMusicTrackImpl_IsParamSupported(IDirectMusicTrack *
static
HRESULT
WINAPI
IDirectMusicTrackImpl_AddNotificationType
(
IDirectMusicTrack
*
iface
,
REFGUID
rguidNotificationType
)
{
ICOM_THIS_MULTI
(
IDirectMusicTimeSigTrack
,
TrackVtbl
,
iface
);
IDirectMusicTimeSigTrack
*
This
=
impl_from_IDirectMusicTrack
(
iface
);
FIXME
(
"(%p, %s): stub
\n
"
,
This
,
debugstr_dmguid
(
rguidNotificationType
));
return
S_OK
;
}
...
...
@@ -182,7 +187,7 @@ static HRESULT WINAPI IDirectMusicTrackImpl_AddNotificationType(IDirectMusicTrac
static
HRESULT
WINAPI
IDirectMusicTrackImpl_RemoveNotificationType
(
IDirectMusicTrack
*
iface
,
REFGUID
rguidNotificationType
)
{
ICOM_THIS_MULTI
(
IDirectMusicTimeSigTrack
,
TrackVtbl
,
iface
);
IDirectMusicTimeSigTrack
*
This
=
impl_from_IDirectMusicTrack
(
iface
);
FIXME
(
"(%p, %s): stub
\n
"
,
This
,
debugstr_dmguid
(
rguidNotificationType
));
return
S_OK
;
}
...
...
@@ -190,12 +195,12 @@ static HRESULT WINAPI IDirectMusicTrackImpl_RemoveNotificationType(IDirectMusicT
static
HRESULT
WINAPI
IDirectMusicTrackImpl_Clone
(
IDirectMusicTrack
*
iface
,
MUSIC_TIME
mtStart
,
MUSIC_TIME
mtEnd
,
IDirectMusicTrack
**
ppTrack
)
{
ICOM_THIS_MULTI
(
IDirectMusicTimeSigTrack
,
TrackVtbl
,
iface
);
IDirectMusicTimeSigTrack
*
This
=
impl_from_IDirectMusicTrack
(
iface
);
FIXME
(
"(%p, %d, %d, %p): stub
\n
"
,
This
,
mtStart
,
mtEnd
,
ppTrack
);
return
S_OK
;
}
static
const
IDirectMusicTrackVtbl
DirectMusicTimeSigTrack_Track_V
tbl
=
{
static
const
IDirectMusicTrackVtbl
dmtack_v
tbl
=
{
IDirectMusicTrackImpl_QueryInterface
,
IDirectMusicTrackImpl_AddRef
,
IDirectMusicTrackImpl_Release
,
...
...
@@ -270,7 +275,7 @@ HRESULT WINAPI create_dmtimesigtrack(REFIID lpcGUID, void **ppobj)
return
E_OUTOFMEMORY
;
}
track
->
UnknownVtbl
=
&
DirectMusicTimeSigTrack_Unknown_Vtbl
;
track
->
TrackVtbl
=
&
DirectMusicTimeSigTrack_Track_V
tbl
;
track
->
IDirectMusicTrack_iface
.
lpVtbl
=
&
dmtack_v
tbl
;
track
->
PersistStreamVtbl
=
&
DirectMusicTimeSigTrack_PersistStream_Vtbl
;
track
->
pDesc
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
DMUS_OBJECTDESC
));
DM_STRUCT_INIT
(
track
->
pDesc
);
...
...
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