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
a73ab629
Commit
a73ab629
authored
Apr 15, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Remove unused variables.
parent
161d3322
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
16 deletions
+10
-16
graph.c
dlls/dmime/graph.c
+3
-4
performance.c
dlls/dmime/performance.c
+1
-2
segment.c
dlls/dmime/segment.c
+6
-10
No files found.
dlls/dmime/graph.c
View file @
a73ab629
...
...
@@ -108,7 +108,6 @@ static HRESULT WINAPI IDirectMusicGraphImpl_IDirectMusicGraph_StampPMsg (LPDIREC
static
HRESULT
WINAPI
IDirectMusicGraphImpl_IDirectMusicGraph_InsertTool
(
LPDIRECTMUSICGRAPH
iface
,
IDirectMusicTool
*
pTool
,
DWORD
*
pdwPChannels
,
DWORD
cPChannels
,
LONG
lIndex
)
{
ICOM_THIS_MULTI
(
IDirectMusicGraphImpl
,
GraphVtbl
,
iface
);
HRESULT
hr
;
struct
list
*
pEntry
=
NULL
;
struct
list
*
pPrevEntry
=
NULL
;
LPDMUS_PRIVATE_GRAPH_TOOL
pIt
=
NULL
;
...
...
@@ -142,14 +141,14 @@ static HRESULT WINAPI IDirectMusicGraphImpl_IDirectMusicGraph_InsertTool (LPDIRE
pNewTool
->
pTool
=
pTool
;
pNewTool
->
dwIndex
=
lIndex
;
IDirectMusicTool8_AddRef
(
pTool
);
hr
=
IDirectMusicTool8_Init
(
pTool
,
iface
);
IDirectMusicTool8_Init
(
pTool
,
iface
);
list_add_tail
(
pPrevEntry
->
next
,
&
pNewTool
->
entry
);
#if 0
DWORD dwNum = 0;
hr =
IDirectMusicTool8_GetMediaTypes(pTool, &dwNum);
IDirectMusicTool8_GetMediaTypes(pTool, &dwNum);
#endif
return
DS_OK
;
}
...
...
dlls/dmime/performance.c
View file @
a73ab629
...
...
@@ -222,8 +222,7 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_Init (LPDIRECTMUSICPERFORMANC
This
->
pDirectSound
=
pDirectSound
;
IDirectSound_AddRef
(
This
->
pDirectSound
);
}
else
{
HRESULT
hr
;
hr
=
DirectSoundCreate8
(
NULL
,
(
LPDIRECTSOUND8
*
)
&
This
->
pDirectSound
,
NULL
);
DirectSoundCreate8
(
NULL
,
(
LPDIRECTSOUND8
*
)
&
This
->
pDirectSound
,
NULL
);
if
(
!
This
->
pDirectSound
)
return
DSERR_NODRIVER
;
if
(
NULL
!=
hWnd
)
{
...
...
dlls/dmime/segment.c
View file @
a73ab629
...
...
@@ -822,9 +822,9 @@ static HRESULT IDirectMusicSegment8Impl_IPersistStream_ParseTrackForm (LPPERSIST
/*ICOM_THIS_MULTI(IDirectMusicSegment8Impl, PersistStreamVtbl, iface);*/
HRESULT
hr
=
E_FAIL
;
DMUS_PRIVATE_CHUNK
Chunk
;
DWORD
StreamSize
,
StreamCount
,
ListSize
[
3
]
,
ListCount
[
3
]
;
DWORD
StreamSize
,
StreamCount
,
ListSize
[
3
];
LARGE_INTEGER
liMove
;
/* used when skipping chunks */
DMUS_IO_TRACK_HEADER
track_hdr
;
DMUS_IO_TRACK_EXTRAS_HEADER
track_xhdr
;
IDirectMusicTrack
*
pTrack
=
NULL
;
...
...
@@ -869,7 +869,6 @@ static HRESULT IDirectMusicSegment8Impl_IPersistStream_ParseTrackForm (LPPERSIST
IStream_Read
(
pStm
,
&
Chunk
.
fccID
,
sizeof
(
FOURCC
),
NULL
);
TRACE_
(
dmfile
)(
": LIST chunk of type %s"
,
debugstr_fourcc
(
Chunk
.
fccID
));
ListSize
[
0
]
=
Chunk
.
dwSize
-
sizeof
(
FOURCC
);
ListCount
[
0
]
=
0
;
if
(
Chunk
.
fccID
==
track_hdr
.
fccType
&&
0
==
track_hdr
.
ckid
)
{
LPSTREAM
pClonedStream
=
NULL
;
...
...
@@ -982,7 +981,7 @@ static HRESULT IDirectMusicSegment8Impl_IPersistStream_ParseTrackList (LPPERSIST
HRESULT
hr
=
E_FAIL
;
DMUS_PRIVATE_CHUNK
Chunk
;
DWORD
StreamSize
,
StreamCount
,
ListSize
[
3
],
ListCount
[
3
];
DWORD
StreamSize
,
ListSize
[
3
],
ListCount
[
3
];
LARGE_INTEGER
liMove
;
/* used when skipping chunks */
if
(
pChunk
->
fccID
!=
DMUS_FOURCC_TRACK_LIST
)
{
...
...
@@ -1002,7 +1001,6 @@ static HRESULT IDirectMusicSegment8Impl_IPersistStream_ParseTrackList (LPPERSIST
IStream_Read
(
pStm
,
&
Chunk
.
fccID
,
sizeof
(
FOURCC
),
NULL
);
TRACE_
(
dmfile
)(
": RIFF chunk of type %s"
,
debugstr_fourcc
(
Chunk
.
fccID
));
StreamSize
=
Chunk
.
dwSize
-
sizeof
(
FOURCC
);
StreamCount
=
0
;
switch
(
Chunk
.
fccID
)
{
case
DMUS_FOURCC_TRACK_FORM
:
{
TRACE_
(
dmfile
)(
": TRACK form
\n
"
);
...
...
@@ -1192,14 +1190,13 @@ static HRESULT IDirectMusicSegment8Impl_IPersistStream_LoadWave (LPPERSISTSTREAM
static
HRESULT
WINAPI
IDirectMusicSegment8Impl_IPersistStream_Load
(
LPPERSISTSTREAM
iface
,
IStream
*
pStm
)
{
ICOM_THIS_MULTI
(
IDirectMusicSegment8Impl
,
PersistStreamVtbl
,
iface
);
HRESULT
hr
;
DMUS_PRIVATE_CHUNK
Chunk
;
DWORD
StreamSize
,
StreamCount
;
DWORD
StreamSize
;
/*DWORD ListSize[3], ListCount[3];*/
LARGE_INTEGER
liMove
;
/* used when skipping chunks */
TRACE
(
"(%p, %p): Loading
\n
"
,
This
,
pStm
);
IStream_Read
(
pStm
,
&
Chunk
,
sizeof
(
FOURCC
)
+
sizeof
(
DWORD
),
NULL
);
TRACE_
(
dmfile
)(
": %s chunk (size = %d)"
,
debugstr_fourcc
(
Chunk
.
fccID
),
Chunk
.
dwSize
);
...
...
@@ -1208,7 +1205,6 @@ static HRESULT WINAPI IDirectMusicSegment8Impl_IPersistStream_Load (LPPERSISTSTR
IStream_Read
(
pStm
,
&
Chunk
.
fccID
,
sizeof
(
FOURCC
),
NULL
);
TRACE_
(
dmfile
)(
": RIFF chunk of type %s"
,
debugstr_fourcc
(
Chunk
.
fccID
));
StreamSize
=
Chunk
.
dwSize
-
sizeof
(
FOURCC
);
StreamCount
=
0
;
switch
(
Chunk
.
fccID
)
{
case
DMUS_FOURCC_SEGMENT_FORM
:
{
TRACE_
(
dmfile
)(
": segment form
\n
"
);
...
...
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