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
7776591f
Commit
7776591f
authored
Apr 10, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Apr 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Add dump function for DMUS_PORTPARAMS struct.
parent
7a772ed8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
0 deletions
+33
-0
dmusic.c
dlls/dmusic/dmusic.c
+3
-0
dmusic_main.c
dlls/dmusic/dmusic_main.c
+28
-0
dmusic_private.h
dlls/dmusic/dmusic_private.h
+2
-0
No files found.
dlls/dmusic/dmusic.c
View file @
7776591f
...
...
@@ -178,6 +178,9 @@ static HRESULT WINAPI IDirectMusic8Impl_CreatePort (LPDIRECTMUSIC8 iface, REFCLS
TRACE
(
"(%p, %s, %p, %p, %p)
\n
"
,
This
,
debugstr_dmguid
(
rclsidPort
),
pPortParams
,
ppPort
,
pUnkOuter
);
if
(
TRACE_ON
(
dmusic
))
dump_DMUS_PORTPARAMS
(
pPortParams
);
if
(
!
rclsidPort
)
return
E_POINTER
;
...
...
dlls/dmusic/dmusic_main.c
View file @
7776591f
...
...
@@ -463,3 +463,31 @@ void dump_DMUS_OBJECTDESC(LPDMUS_OBJECTDESC desc)
wine_dbgstr_longlong
(
desc
->
llMemLength
),
desc
->
pbMemData
);
if
(
desc
->
dwValidData
&
DMUS_OBJ_STREAM
)
TRACE
(
" - pStream = %p
\n
"
,
desc
->
pStream
);
}
/* Dump DMUS_PORTPARAMS flags */
static
const
char
*
debugstr_DMUS_PORTPARAMS_FLAGS
(
DWORD
flagmask
)
{
static
const
flag_info
flags
[]
=
{
FE
(
DMUS_PORTPARAMS_VOICES
),
FE
(
DMUS_PORTPARAMS_CHANNELGROUPS
),
FE
(
DMUS_PORTPARAMS_AUDIOCHANNELS
),
FE
(
DMUS_PORTPARAMS_SAMPLERATE
),
FE
(
DMUS_PORTPARAMS_EFFECTS
),
FE
(
DMUS_PORTPARAMS_SHARE
)
};
return
debugstr_flags
(
flagmask
,
flags
,
sizeof
(
flags
)
/
sizeof
(
flags
[
0
]));
}
/* Dump whole DMUS_PORTPARAMS struct */
void
dump_DMUS_PORTPARAMS
(
LPDMUS_PORTPARAMS
params
)
{
TRACE
(
"DMUS_PORTPARAMS (%p):
\n
"
,
params
);
TRACE
(
" - dwSize = %d
\n
"
,
params
->
dwSize
);
TRACE
(
" - dwValidParams = %s
\n
"
,
debugstr_DMUS_PORTPARAMS_FLAGS
(
params
->
dwValidParams
));
if
(
params
->
dwValidParams
&
DMUS_PORTPARAMS_VOICES
)
TRACE
(
" - dwVoices = %u
\n
"
,
params
->
dwVoices
);
if
(
params
->
dwValidParams
&
DMUS_PORTPARAMS_CHANNELGROUPS
)
TRACE
(
" - dwChannelGroup = %u
\n
"
,
params
->
dwChannelGroups
);
if
(
params
->
dwValidParams
&
DMUS_PORTPARAMS_AUDIOCHANNELS
)
TRACE
(
" - dwAudioChannels = %u
\n
"
,
params
->
dwAudioChannels
);
if
(
params
->
dwValidParams
&
DMUS_PORTPARAMS_SAMPLERATE
)
TRACE
(
" - dwSampleRate = %u
\n
"
,
params
->
dwSampleRate
);
if
(
params
->
dwValidParams
&
DMUS_PORTPARAMS_EFFECTS
)
TRACE
(
" - dwEffectFlags = %x
\n
"
,
params
->
dwEffectFlags
);
if
(
params
->
dwValidParams
&
DMUS_PORTPARAMS_SHARE
)
TRACE
(
" - fShare = %u
\n
"
,
params
->
fShare
);
}
dlls/dmusic/dmusic_private.h
View file @
7776591f
...
...
@@ -276,5 +276,7 @@ extern const char *debugstr_fourcc (DWORD fourcc) DECLSPEC_HIDDEN;
extern
const
char
*
debugstr_dmguid
(
const
GUID
*
id
)
DECLSPEC_HIDDEN
;
/* Dump whole DMUS_OBJECTDESC struct */
extern
void
dump_DMUS_OBJECTDESC
(
LPDMUS_OBJECTDESC
desc
)
DECLSPEC_HIDDEN
;
/* Dump whole DMUS_PORTPARAMS struct */
extern
void
dump_DMUS_PORTPARAMS
(
LPDMUS_PORTPARAMS
params
)
DECLSPEC_HIDDEN
;
#endif
/* __WINE_DMUSIC_PRIVATE_H */
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