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
5d97483f
Commit
5d97483f
authored
Sep 04, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Get rid of the IDirectMusicGraphImpl typedef.
parent
fec9d2c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
25 deletions
+25
-25
audiopath.c
dlls/dmime/audiopath.c
+6
-6
dmime_private.h
dlls/dmime/dmime_private.h
+0
-1
graph.c
dlls/dmime/graph.c
+19
-18
No files found.
dlls/dmime/audiopath.c
View file @
5d97483f
...
@@ -158,11 +158,11 @@ static HRESULT WINAPI IDirectMusicAudioPathImpl_GetObjectInPath (IDirectMusicAud
...
@@ -158,11 +158,11 @@ static HRESULT WINAPI IDirectMusicAudioPathImpl_GetObjectInPath (IDirectMusicAud
{
{
if
(
IsEqualIID
(
iidInterface
,
&
IID_IDirectMusicGraph
))
{
if
(
IsEqualIID
(
iidInterface
,
&
IID_IDirectMusicGraph
))
{
if
(
NULL
==
This
->
pToolGraph
)
{
if
(
NULL
==
This
->
pToolGraph
)
{
IDirectMusicGraph
Impl
*
pGraph
;
IDirectMusicGraph
*
pGraph
;
hr
=
create_dmgraph
(
&
IID_IDirectMusicGraph
,
(
void
**
)
&
pGraph
);
hr
=
create_dmgraph
(
&
IID_IDirectMusicGraph
,
(
void
**
)
&
pGraph
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
return
hr
;
return
hr
;
This
->
pToolGraph
=
(
IDirectMusicGraph
*
)
pGraph
;
This
->
pToolGraph
=
pGraph
;
}
}
*
ppObject
=
This
->
pToolGraph
;
*
ppObject
=
This
->
pToolGraph
;
IDirectMusicGraph_AddRef
((
LPDIRECTMUSICGRAPH
)
*
ppObject
);
IDirectMusicGraph_AddRef
((
LPDIRECTMUSICGRAPH
)
*
ppObject
);
...
@@ -191,14 +191,14 @@ static HRESULT WINAPI IDirectMusicAudioPathImpl_GetObjectInPath (IDirectMusicAud
...
@@ -191,14 +191,14 @@ static HRESULT WINAPI IDirectMusicAudioPathImpl_GetObjectInPath (IDirectMusicAud
IDirectMusicGraph
*
pPerfoGraph
=
NULL
;
IDirectMusicGraph
*
pPerfoGraph
=
NULL
;
IDirectMusicPerformance8_GetGraph
(
This
->
pPerf
,
&
pPerfoGraph
);
IDirectMusicPerformance8_GetGraph
(
This
->
pPerf
,
&
pPerfoGraph
);
if
(
NULL
==
pPerfoGraph
)
{
if
(
NULL
==
pPerfoGraph
)
{
IDirectMusicGraph
Impl
*
pGraph
=
NULL
;
IDirectMusicGraph
*
pGraph
=
NULL
;
hr
=
create_dmgraph
(
&
IID_IDirectMusicGraph
,
(
void
**
)
&
pGraph
);
hr
=
create_dmgraph
(
&
IID_IDirectMusicGraph
,
(
void
**
)
&
pGraph
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
return
hr
;
return
hr
;
IDirectMusicPerformance8_SetGraph
(
This
->
pPerf
,
(
IDirectMusicGraph
*
)
pGraph
);
IDirectMusicPerformance8_SetGraph
(
This
->
pPerf
,
pGraph
);
/* we need release as SetGraph do an AddRef */
/* we need release as SetGraph do an AddRef */
IDirectMusicGraph_Release
(
(
LPDIRECTMUSICGRAPH
)
pGraph
);
IDirectMusicGraph_Release
(
pGraph
);
pPerfoGraph
=
(
LPDIRECTMUSICGRAPH
)
pGraph
;
pPerfoGraph
=
pGraph
;
}
}
*
ppObject
=
pPerfoGraph
;
*
ppObject
=
pPerfoGraph
;
return
S_OK
;
return
S_OK
;
...
...
dlls/dmime/dmime_private.h
View file @
5d97483f
...
@@ -45,7 +45,6 @@
...
@@ -45,7 +45,6 @@
/*****************************************************************************
/*****************************************************************************
* Interfaces
* Interfaces
*/
*/
typedef
struct
IDirectMusicGraphImpl
IDirectMusicGraphImpl
;
typedef
struct
IDirectMusicAudioPathImpl
IDirectMusicAudioPathImpl
;
typedef
struct
IDirectMusicAudioPathImpl
IDirectMusicAudioPathImpl
;
/*****************************************************************************
/*****************************************************************************
...
...
dlls/dmime/graph.c
View file @
5d97483f
...
@@ -28,27 +28,28 @@ struct tool_entry
...
@@ -28,27 +28,28 @@ struct tool_entry
IDirectMusicTool
*
tool
;
IDirectMusicTool
*
tool
;
};
};
struct
IDirectMusicGraphImpl
{
struct
graph
IDirectMusicGraph
IDirectMusicGraph_iface
;
{
struct
dmobject
dmobj
;
IDirectMusicGraph
IDirectMusicGraph_iface
;
LONG
ref
;
struct
dmobject
dmobj
;
LONG
ref
;
struct
list
tools
;
struct
list
tools
;
};
};
static
inline
IDirectMusicGraphImpl
*
impl_from_IDirectMusicGraph
(
IDirectMusicGraph
*
iface
)
static
inline
struct
graph
*
impl_from_IDirectMusicGraph
(
IDirectMusicGraph
*
iface
)
{
{
return
CONTAINING_RECORD
(
iface
,
IDirectMusicGraphImpl
,
IDirectMusicGraph_iface
);
return
CONTAINING_RECORD
(
iface
,
struct
graph
,
IDirectMusicGraph_iface
);
}
}
static
inline
IDirectMusicGraphImpl
*
impl_from_IPersistStream
(
IPersistStream
*
iface
)
static
inline
struct
graph
*
impl_from_IPersistStream
(
IPersistStream
*
iface
)
{
{
return
CONTAINING_RECORD
(
iface
,
IDirectMusicGraphImpl
,
dmobj
.
IPersistStream_iface
);
return
CONTAINING_RECORD
(
iface
,
struct
graph
,
dmobj
.
IPersistStream_iface
);
}
}
static
HRESULT
WINAPI
graph_QueryInterface
(
IDirectMusicGraph
*
iface
,
REFIID
riid
,
void
**
ret_iface
)
static
HRESULT
WINAPI
graph_QueryInterface
(
IDirectMusicGraph
*
iface
,
REFIID
riid
,
void
**
ret_iface
)
{
{
IDirectMusicGraphImpl
*
This
=
impl_from_IDirectMusicGraph
(
iface
);
struct
graph
*
This
=
impl_from_IDirectMusicGraph
(
iface
);
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ret_iface
);
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ret_iface
);
...
@@ -76,7 +77,7 @@ static HRESULT WINAPI graph_QueryInterface(IDirectMusicGraph *iface, REFIID riid
...
@@ -76,7 +77,7 @@ static HRESULT WINAPI graph_QueryInterface(IDirectMusicGraph *iface, REFIID riid
static
ULONG
WINAPI
graph_AddRef
(
IDirectMusicGraph
*
iface
)
static
ULONG
WINAPI
graph_AddRef
(
IDirectMusicGraph
*
iface
)
{
{
IDirectMusicGraphImpl
*
This
=
impl_from_IDirectMusicGraph
(
iface
);
struct
graph
*
This
=
impl_from_IDirectMusicGraph
(
iface
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p): %ld
\n
"
,
This
,
ref
);
TRACE
(
"(%p): %ld
\n
"
,
This
,
ref
);
...
@@ -86,7 +87,7 @@ static ULONG WINAPI graph_AddRef(IDirectMusicGraph *iface)
...
@@ -86,7 +87,7 @@ static ULONG WINAPI graph_AddRef(IDirectMusicGraph *iface)
static
ULONG
WINAPI
graph_Release
(
IDirectMusicGraph
*
iface
)
static
ULONG
WINAPI
graph_Release
(
IDirectMusicGraph
*
iface
)
{
{
IDirectMusicGraphImpl
*
This
=
impl_from_IDirectMusicGraph
(
iface
);
struct
graph
*
This
=
impl_from_IDirectMusicGraph
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p): %ld
\n
"
,
This
,
ref
);
TRACE
(
"(%p): %ld
\n
"
,
This
,
ref
);
...
@@ -110,7 +111,7 @@ static ULONG WINAPI graph_Release(IDirectMusicGraph *iface)
...
@@ -110,7 +111,7 @@ static ULONG WINAPI graph_Release(IDirectMusicGraph *iface)
static
HRESULT
WINAPI
graph_StampPMsg
(
IDirectMusicGraph
*
iface
,
DMUS_PMSG
*
msg
)
static
HRESULT
WINAPI
graph_StampPMsg
(
IDirectMusicGraph
*
iface
,
DMUS_PMSG
*
msg
)
{
{
IDirectMusicGraphImpl
*
This
=
impl_from_IDirectMusicGraph
(
iface
);
struct
graph
*
This
=
impl_from_IDirectMusicGraph
(
iface
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
msg
);
FIXME
(
"(%p, %p): stub
\n
"
,
This
,
msg
);
return
S_OK
;
return
S_OK
;
}
}
...
@@ -118,7 +119,7 @@ static HRESULT WINAPI graph_StampPMsg(IDirectMusicGraph *iface, DMUS_PMSG *msg)
...
@@ -118,7 +119,7 @@ static HRESULT WINAPI graph_StampPMsg(IDirectMusicGraph *iface, DMUS_PMSG *msg)
static
HRESULT
WINAPI
graph_InsertTool
(
IDirectMusicGraph
*
iface
,
IDirectMusicTool
*
tool
,
static
HRESULT
WINAPI
graph_InsertTool
(
IDirectMusicGraph
*
iface
,
IDirectMusicTool
*
tool
,
DWORD
*
channels
,
DWORD
channel_count
,
LONG
index
)
DWORD
*
channels
,
DWORD
channel_count
,
LONG
index
)
{
{
IDirectMusicGraphImpl
*
This
=
impl_from_IDirectMusicGraph
(
iface
);
struct
graph
*
This
=
impl_from_IDirectMusicGraph
(
iface
);
struct
tool_entry
*
entry
,
*
next
;
struct
tool_entry
*
entry
,
*
next
;
TRACE
(
"(%p, %p, %p, %ld, %li)
\n
"
,
This
,
tool
,
channels
,
channel_count
,
index
);
TRACE
(
"(%p, %p, %p, %ld, %li)
\n
"
,
This
,
tool
,
channels
,
channel_count
,
index
);
...
@@ -142,7 +143,7 @@ static HRESULT WINAPI graph_InsertTool(IDirectMusicGraph *iface, IDirectMusicToo
...
@@ -142,7 +143,7 @@ static HRESULT WINAPI graph_InsertTool(IDirectMusicGraph *iface, IDirectMusicToo
static
HRESULT
WINAPI
graph_GetTool
(
IDirectMusicGraph
*
iface
,
DWORD
index
,
IDirectMusicTool
**
ret_tool
)
static
HRESULT
WINAPI
graph_GetTool
(
IDirectMusicGraph
*
iface
,
DWORD
index
,
IDirectMusicTool
**
ret_tool
)
{
{
IDirectMusicGraphImpl
*
This
=
impl_from_IDirectMusicGraph
(
iface
);
struct
graph
*
This
=
impl_from_IDirectMusicGraph
(
iface
);
struct
tool_entry
*
entry
;
struct
tool_entry
*
entry
;
TRACE
(
"(%p, %ld, %p)
\n
"
,
This
,
index
,
ret_tool
);
TRACE
(
"(%p, %ld, %p)
\n
"
,
This
,
index
,
ret_tool
);
...
@@ -164,7 +165,7 @@ static HRESULT WINAPI graph_GetTool(IDirectMusicGraph *iface, DWORD index, IDire
...
@@ -164,7 +165,7 @@ static HRESULT WINAPI graph_GetTool(IDirectMusicGraph *iface, DWORD index, IDire
static
HRESULT
WINAPI
graph_RemoveTool
(
IDirectMusicGraph
*
iface
,
IDirectMusicTool
*
tool
)
static
HRESULT
WINAPI
graph_RemoveTool
(
IDirectMusicGraph
*
iface
,
IDirectMusicTool
*
tool
)
{
{
IDirectMusicGraphImpl
*
This
=
impl_from_IDirectMusicGraph
(
iface
);
struct
graph
*
This
=
impl_from_IDirectMusicGraph
(
iface
);
struct
tool_entry
*
entry
;
struct
tool_entry
*
entry
;
TRACE
(
"(%p, %p)
\n
"
,
This
,
tool
);
TRACE
(
"(%p, %p)
\n
"
,
This
,
tool
);
...
@@ -240,7 +241,7 @@ static const IDirectMusicObjectVtbl dmobject_vtbl = {
...
@@ -240,7 +241,7 @@ static const IDirectMusicObjectVtbl dmobject_vtbl = {
static
HRESULT
WINAPI
graph_IPersistStream_Load
(
IPersistStream
*
iface
,
IStream
*
stream
)
static
HRESULT
WINAPI
graph_IPersistStream_Load
(
IPersistStream
*
iface
,
IStream
*
stream
)
{
{
IDirectMusicGraphImpl
*
This
=
impl_from_IPersistStream
(
iface
);
struct
graph
*
This
=
impl_from_IPersistStream
(
iface
);
FIXME
(
"(%p, %p): Loading not implemented yet
\n
"
,
This
,
stream
);
FIXME
(
"(%p, %p): Loading not implemented yet
\n
"
,
This
,
stream
);
...
@@ -262,7 +263,7 @@ static const IPersistStreamVtbl persiststream_vtbl = {
...
@@ -262,7 +263,7 @@ static const IPersistStreamVtbl persiststream_vtbl = {
/* for ClassFactory */
/* for ClassFactory */
HRESULT
create_dmgraph
(
REFIID
riid
,
void
**
ret_iface
)
HRESULT
create_dmgraph
(
REFIID
riid
,
void
**
ret_iface
)
{
{
IDirectMusicGraphImpl
*
obj
;
struct
graph
*
obj
;
HRESULT
hr
;
HRESULT
hr
;
*
ret_iface
=
NULL
;
*
ret_iface
=
NULL
;
...
...
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