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
f71315c8
Commit
f71315c8
authored
Sep 12, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Add more parsed instruments traces.
parent
3fa399b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
7 deletions
+31
-7
instrument.c
dlls/dmusic/instrument.c
+31
-7
No files found.
dlls/dmusic/instrument.c
View file @
f71315c8
...
@@ -328,14 +328,38 @@ HRESULT instrument_create_from_chunk(IStream *stream, struct chunk_entry *parent
...
@@ -328,14 +328,38 @@ HRESULT instrument_create_from_chunk(IStream *stream, struct chunk_entry *parent
if
(
TRACE_ON
(
dmusic
))
if
(
TRACE_ON
(
dmusic
))
{
{
TRACE
(
"Created DirectMusicInstrument (%p) ***
\n
"
,
This
);
struct
region
*
region
;
TRACE
(
" - Instrument header:
\n
"
);
UINT
i
;
TRACE
(
" - cRegions: %ld
\n
"
,
This
->
header
.
cRegions
);
TRACE
(
" - Locale:
\n
"
);
TRACE
(
"Created DirectMusicInstrument %p
\n
"
,
This
);
TRACE
(
" - ulBank: %ld
\n
"
,
This
->
header
.
Locale
.
ulBank
);
TRACE
(
" - header:
\n
"
);
TRACE
(
" - ulInstrument: %ld
\n
"
,
This
->
header
.
Locale
.
ulInstrument
);
TRACE
(
" - regions: %ld
\n
"
,
This
->
header
.
cRegions
);
TRACE
(
" => dwPatch: %ld
\n
"
,
MIDILOCALE2Patch
(
&
This
->
header
.
Locale
));
TRACE
(
" - locale: {bank: %#lx, instrument: %#lx} (patch %#lx)
\n
"
,
This
->
header
.
Locale
.
ulBank
,
This
->
header
.
Locale
.
ulInstrument
,
MIDILOCALE2Patch
(
&
This
->
header
.
Locale
));
if
(
desc
->
dwValidData
&
DMUS_OBJ_OBJECT
)
TRACE
(
" - guid: %s
\n
"
,
debugstr_dmguid
(
&
desc
->
guidObject
));
if
(
desc
->
dwValidData
&
DMUS_OBJ_OBJECT
)
TRACE
(
" - guid: %s
\n
"
,
debugstr_dmguid
(
&
desc
->
guidObject
));
if
(
desc
->
dwValidData
&
DMUS_OBJ_NAME
)
TRACE
(
" - name: %s
\n
"
,
debugstr_w
(
desc
->
wszName
));
TRACE
(
" - regions:
\n
"
);
LIST_FOR_EACH_ENTRY
(
region
,
&
This
->
regions
,
struct
region
,
entry
)
{
TRACE
(
" - region:
\n
"
);
TRACE
(
" - header: {key: %u - %u, vel: %u - %u, options: %#x, group: %#x}
\n
"
,
region
->
header
.
RangeKey
.
usLow
,
region
->
header
.
RangeKey
.
usHigh
,
region
->
header
.
RangeVelocity
.
usLow
,
region
->
header
.
RangeVelocity
.
usHigh
,
region
->
header
.
fusOptions
,
region
->
header
.
usKeyGroup
);
TRACE
(
" - wave_link: {options: %#x, group: %u, channel: %lu, index: %lu}
\n
"
,
region
->
wave_link
.
fusOptions
,
region
->
wave_link
.
usPhaseGroup
,
region
->
wave_link
.
ulChannel
,
region
->
wave_link
.
ulTableIndex
);
TRACE
(
" - wave_sample: {size: %lu, unity_note: %u, fine_tune: %d, attenuation: %ld, options: %#lx, loops: %lu}
\n
"
,
region
->
wave_sample
.
cbSize
,
region
->
wave_sample
.
usUnityNote
,
region
->
wave_sample
.
sFineTune
,
region
->
wave_sample
.
lAttenuation
,
region
->
wave_sample
.
fulOptions
,
region
->
wave_sample
.
cSampleLoops
);
for
(
i
=
0
;
i
<
region
->
wave_sample
.
cSampleLoops
;
i
++
)
TRACE
(
" - wave_loop[%u]: {size: %lu, type: %lu, start: %lu, length: %lu}
\n
"
,
i
,
region
->
wave_loop
.
cbSize
,
region
->
wave_loop
.
ulType
,
region
->
wave_loop
.
ulStart
,
region
->
wave_loop
.
ulLength
);
}
}
}
*
ret_iface
=
iface
;
*
ret_iface
=
iface
;
...
...
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