1 /* Debug and Helper Functions
3 * Copyright (C) 2004 Rok Mandeljc
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include "wine/port.h"
23 #include "dmloader_private.h"
25 WINE_DEFAULT_DEBUG_CHANNEL(dmloader
);
27 /* figures out whether given FOURCC is valid DirectMusic form ID */
28 BOOL
IS_VALID_DMFORM (FOURCC chunkID
) {
29 if ((chunkID
== DMUS_FOURCC_AUDIOPATH_FORM
) || (chunkID
== DMUS_FOURCC_BAND_FORM
) || (chunkID
== DMUS_FOURCC_CHORDMAP_FORM
)
30 || (chunkID
== DMUS_FOURCC_CONTAINER_FORM
) || (chunkID
== FOURCC_DLS
) || (chunkID
== DMUS_FOURCC_SCRIPT_FORM
)
31 || (chunkID
== DMUS_FOURCC_SEGMENT_FORM
) || (chunkID
== DMUS_FOURCC_STYLE_FORM
) || (chunkID
== DMUS_FOURCC_TOOLGRAPH_FORM
)
32 || (chunkID
== DMUS_FOURCC_TRACK_FORM
) || (chunkID
== mmioFOURCC('W','A','V','E'))) return TRUE
;
36 /* translate STREAM_SEEK flag to string */
37 const char *resolve_STREAM_SEEK (DWORD flag
) {
40 return wine_dbg_sprintf ("STREAM_SEEK_SET");
42 return wine_dbg_sprintf ("STREAM_SEEK_CUR");
44 return wine_dbg_sprintf ("STREAM_SEEK_END");
46 return wine_dbg_sprintf ("()");
50 /* FOURCC to string conversion for debug messages */
51 const char *debugstr_fourcc (DWORD fourcc
) {
52 if (!fourcc
) return "'null'";
53 return wine_dbg_sprintf ("\'%c%c%c%c\'",
54 (char)(fourcc
), (char)(fourcc
>> 8),
55 (char)(fourcc
>> 16), (char)(fourcc
>> 24));
58 /* DMUS_VERSION struct to string conversion for debug messages */
59 const char *debugstr_dmversion (const DMUS_VERSION
*version
) {
60 if (!version
) return "'null'";
61 return wine_dbg_sprintf ("\'%i,%i,%i,%i\'",
62 HIWORD(version
->dwVersionMS
),LOWORD(version
->dwVersionMS
),
63 HIWORD(version
->dwVersionLS
), LOWORD(version
->dwVersionLS
));
66 /* month number into month name (for debugstr_filetime) */
67 static const char *debugstr_month (DWORD dwMonth
) {
69 case 1: return "January";
70 case 2: return "February";
71 case 3: return "March";
72 case 4: return "April";
74 case 6: return "June";
75 case 7: return "July";
76 case 8: return "August";
77 case 9: return "September";
78 case 10: return "October";
79 case 11: return "November";
80 case 12: return "December";
81 default: return "Invalid";
85 /* FILETIME struct to string conversion for debug messages */
86 const char *debugstr_filetime (const FILETIME
*time
) {
89 if (!time
) return "'null'";
91 FileTimeToSystemTime (time
, &sysTime
);
93 return wine_dbg_sprintf ("\'%02i. %s %04i %02i:%02i:%02i\'",
94 sysTime
.wDay
, debugstr_month(sysTime
.wMonth
), sysTime
.wYear
,
95 sysTime
.wHour
, sysTime
.wMinute
, sysTime
.wSecond
);
98 /* returns name of given GUID */
99 const char *debugstr_dmguid (const GUID
*id
) {
100 static const guid_info guids
[] = {
102 GE(CLSID_AudioVBScript
),
103 GE(CLSID_DirectMusic
),
104 GE(CLSID_DirectMusicAudioPathConfig
),
105 GE(CLSID_DirectMusicAuditionTrack
),
106 GE(CLSID_DirectMusicBand
),
107 GE(CLSID_DirectMusicBandTrack
),
108 GE(CLSID_DirectMusicChordMapTrack
),
109 GE(CLSID_DirectMusicChordMap
),
110 GE(CLSID_DirectMusicChordTrack
),
111 GE(CLSID_DirectMusicCollection
),
112 GE(CLSID_DirectMusicCommandTrack
),
113 GE(CLSID_DirectMusicComposer
),
114 GE(CLSID_DirectMusicContainer
),
115 GE(CLSID_DirectMusicGraph
),
116 GE(CLSID_DirectMusicLoader
),
117 GE(CLSID_DirectMusicLyricsTrack
),
118 GE(CLSID_DirectMusicMarkerTrack
),
119 GE(CLSID_DirectMusicMelodyFormulationTrack
),
120 GE(CLSID_DirectMusicMotifTrack
),
121 GE(CLSID_DirectMusicMuteTrack
),
122 GE(CLSID_DirectMusicParamControlTrack
),
123 GE(CLSID_DirectMusicPatternTrack
),
124 GE(CLSID_DirectMusicPerformance
),
125 GE(CLSID_DirectMusicScript
),
126 GE(CLSID_DirectMusicScriptAutoImpSegment
),
127 GE(CLSID_DirectMusicScriptAutoImpPerformance
),
128 GE(CLSID_DirectMusicScriptAutoImpSegmentState
),
129 GE(CLSID_DirectMusicScriptAutoImpAudioPathConfig
),
130 GE(CLSID_DirectMusicScriptAutoImpAudioPath
),
131 GE(CLSID_DirectMusicScriptAutoImpSong
),
132 GE(CLSID_DirectMusicScriptSourceCodeLoader
),
133 GE(CLSID_DirectMusicScriptTrack
),
134 GE(CLSID_DirectMusicSection
),
135 GE(CLSID_DirectMusicSegment
),
136 GE(CLSID_DirectMusicSegmentState
),
137 GE(CLSID_DirectMusicSegmentTriggerTrack
),
138 GE(CLSID_DirectMusicSegTriggerTrack
),
139 GE(CLSID_DirectMusicSeqTrack
),
140 GE(CLSID_DirectMusicSignPostTrack
),
141 GE(CLSID_DirectMusicSong
),
142 GE(CLSID_DirectMusicStyle
),
143 GE(CLSID_DirectMusicStyleTrack
),
144 GE(CLSID_DirectMusicSynth
),
145 GE(CLSID_DirectMusicSynthSink
),
146 GE(CLSID_DirectMusicSysExTrack
),
147 GE(CLSID_DirectMusicTemplate
),
148 GE(CLSID_DirectMusicTempoTrack
),
149 GE(CLSID_DirectMusicTimeSigTrack
),
150 GE(CLSID_DirectMusicWaveTrack
),
151 GE(CLSID_DirectSoundWave
),
153 GE(IID_IDirectMusic
),
154 GE(IID_IDirectMusic2
),
155 GE(IID_IDirectMusic8
),
156 GE(IID_IDirectMusicAudioPath
),
157 GE(IID_IDirectMusicBand
),
158 GE(IID_IDirectMusicBuffer
),
159 GE(IID_IDirectMusicChordMap
),
160 GE(IID_IDirectMusicCollection
),
161 GE(IID_IDirectMusicComposer
),
162 GE(IID_IDirectMusicContainer
),
163 GE(IID_IDirectMusicDownload
),
164 GE(IID_IDirectMusicDownloadedInstrument
),
165 GE(IID_IDirectMusicGetLoader
),
166 GE(IID_IDirectMusicGraph
),
167 GE(IID_IDirectMusicInstrument
),
168 GE(IID_IDirectMusicLoader
),
169 GE(IID_IDirectMusicLoader8
),
170 GE(IID_IDirectMusicObject
),
171 GE(IID_IDirectMusicPatternTrack
),
172 GE(IID_IDirectMusicPerformance
),
173 GE(IID_IDirectMusicPerformance2
),
174 GE(IID_IDirectMusicPerformance8
),
175 GE(IID_IDirectMusicPort
),
176 GE(IID_IDirectMusicPortDownload
),
177 GE(IID_IDirectMusicScript
),
178 GE(IID_IDirectMusicSegment
),
179 GE(IID_IDirectMusicSegment2
),
180 GE(IID_IDirectMusicSegment8
),
181 GE(IID_IDirectMusicSegmentState
),
182 GE(IID_IDirectMusicSegmentState8
),
183 GE(IID_IDirectMusicStyle
),
184 GE(IID_IDirectMusicStyle8
),
185 GE(IID_IDirectMusicSynth
),
186 GE(IID_IDirectMusicSynth8
),
187 GE(IID_IDirectMusicSynthSink
),
188 GE(IID_IDirectMusicThru
),
189 GE(IID_IDirectMusicTool
),
190 GE(IID_IDirectMusicTool8
),
191 GE(IID_IDirectMusicTrack
),
192 GE(IID_IDirectMusicTrack8
),
194 GE(IID_IPersistStream
),
196 GE(IID_IClassFactory
),
198 GE(GUID_DirectMusicAllTypes
),
199 GE(GUID_NOTIFICATION_CHORD
),
200 GE(GUID_NOTIFICATION_COMMAND
),
201 GE(GUID_NOTIFICATION_MEASUREANDBEAT
),
202 GE(GUID_NOTIFICATION_PERFORMANCE
),
203 GE(GUID_NOTIFICATION_RECOMPOSE
),
204 GE(GUID_NOTIFICATION_SEGMENT
),
207 GE(GUID_CommandParam
),
208 GE(GUID_CommandParam2
),
209 GE(GUID_CommandParamNext
),
210 GE(GUID_IDirectMusicBand
),
211 GE(GUID_IDirectMusicChordMap
),
212 GE(GUID_IDirectMusicStyle
),
214 GE(GUID_Play_Marker
),
215 GE(GUID_RhythmParam
),
217 GE(GUID_TimeSignature
),
218 GE(GUID_Valid_Start_Time
),
219 GE(GUID_Clear_All_Bands
),
220 GE(GUID_ConnectToDLSCollection
),
221 GE(GUID_Disable_Auto_Download
),
222 GE(GUID_DisableTempo
),
223 GE(GUID_DisableTimeSig
),
225 GE(GUID_DownloadToAudioPath
),
226 GE(GUID_Enable_Auto_Download
),
227 GE(GUID_EnableTempo
),
228 GE(GUID_EnableTimeSig
),
229 GE(GUID_IgnoreBankSelectForGM
),
230 GE(GUID_SeedVariations
),
231 GE(GUID_StandardMIDIFile
),
233 GE(GUID_UnloadFromAudioPath
),
235 GE(GUID_PerfMasterTempo
),
236 GE(GUID_PerfMasterVolume
),
237 GE(GUID_PerfMasterGrooveLevel
),
238 GE(GUID_PerfAutoDownload
),
239 GE(GUID_DefaultGMCollection
),
240 GE(GUID_Synth_Default
),
241 GE(GUID_Buffer_Reverb
),
242 GE(GUID_Buffer_EnvReverb
),
243 GE(GUID_Buffer_Stereo
),
244 GE(GUID_Buffer_3D_Dry
),
245 GE(GUID_Buffer_Mono
),
246 GE(GUID_DMUS_PROP_GM_Hardware
),
247 GE(GUID_DMUS_PROP_GS_Capable
),
248 GE(GUID_DMUS_PROP_GS_Hardware
),
249 GE(GUID_DMUS_PROP_DLS1
),
250 GE(GUID_DMUS_PROP_DLS2
),
251 GE(GUID_DMUS_PROP_Effects
),
252 GE(GUID_DMUS_PROP_INSTRUMENT2
),
253 GE(GUID_DMUS_PROP_LegacyCaps
),
254 GE(GUID_DMUS_PROP_MemorySize
),
255 GE(GUID_DMUS_PROP_SampleMemorySize
),
256 GE(GUID_DMUS_PROP_SamplePlaybackRate
),
257 GE(GUID_DMUS_PROP_SetSynthSink
),
258 GE(GUID_DMUS_PROP_SinkUsesDSound
),
259 GE(GUID_DMUS_PROP_SynthSink_DSOUND
),
260 GE(GUID_DMUS_PROP_SynthSink_WAVE
),
261 GE(GUID_DMUS_PROP_Volume
),
262 GE(GUID_DMUS_PROP_WavesReverb
),
263 GE(GUID_DMUS_PROP_WriteLatency
),
264 GE(GUID_DMUS_PROP_WritePeriod
),
265 GE(GUID_DMUS_PROP_XG_Capable
),
266 GE(GUID_DMUS_PROP_XG_Hardware
)
271 if (!id
) return "(null)";
272 for (i
= 0; i
< sizeof(guids
)/sizeof(guids
[0]); i
++) {
273 if (IsEqualGUID(id
, guids
[i
].guid
))
274 return guids
[i
].name
;
277 /* if we didn't find it, act like standard debugstr_guid */
278 return debugstr_guid(id
);
281 /* returns name of given error code */
282 const char *debugstr_dmreturn (DWORD code
) {
283 static const flag_info codes
[] = {
286 FE(DMUS_S_PARTIALLOAD
),
287 FE(DMUS_S_PARTIALDOWNLOAD
),
291 FE(DMUS_S_STRING_TRUNCATED
),
292 FE(DMUS_S_LAST_TOOL
),
293 FE(DMUS_S_OVER_CHORD
),
294 FE(DMUS_S_UP_OCTAVE
),
295 FE(DMUS_S_DOWN_OCTAVE
),
296 FE(DMUS_S_NOBUFFERCONTROL
),
297 FE(DMUS_S_GARBAGE_COLLECTED
),
301 FE(CLASS_E_NOAGGREGATION
),
302 FE(CLASS_E_CLASSNOTAVAILABLE
),
303 FE(REGDB_E_CLASSNOTREG
),
307 FE(DMUS_E_DRIVER_FAILED
),
308 FE(DMUS_E_PORTS_OPEN
),
309 FE(DMUS_E_DEVICE_IN_USE
),
310 FE(DMUS_E_INSUFFICIENTBUFFER
),
311 FE(DMUS_E_BUFFERNOTSET
),
312 FE(DMUS_E_BUFFERNOTAVAILABLE
),
313 FE(DMUS_E_NOTADLSCOL
),
314 FE(DMUS_E_INVALIDOFFSET
),
315 FE(DMUS_E_ALREADY_LOADED
),
316 FE(DMUS_E_INVALIDPOS
),
317 FE(DMUS_E_INVALIDPATCH
),
318 FE(DMUS_E_CANNOTSEEK
),
319 FE(DMUS_E_CANNOTWRITE
),
320 FE(DMUS_E_CHUNKNOTFOUND
),
321 FE(DMUS_E_INVALID_DOWNLOADID
),
322 FE(DMUS_E_NOT_DOWNLOADED_TO_PORT
),
323 FE(DMUS_E_ALREADY_DOWNLOADED
),
324 FE(DMUS_E_UNKNOWN_PROPERTY
),
325 FE(DMUS_E_SET_UNSUPPORTED
),
326 FE(DMUS_E_GET_UNSUPPORTED
),
328 FE(DMUS_E_BADARTICULATION
),
329 FE(DMUS_E_BADINSTRUMENT
),
330 FE(DMUS_E_BADWAVELINK
),
331 FE(DMUS_E_NOARTICULATION
),
334 FE(DMUS_E_BADOFFSETTABLE
),
335 FE(DMUS_E_UNKNOWNDOWNLOAD
),
336 FE(DMUS_E_NOSYNTHSINK
),
337 FE(DMUS_E_ALREADYOPEN
),
338 FE(DMUS_E_ALREADYCLOSED
),
339 FE(DMUS_E_SYNTHNOTCONFIGURED
),
340 FE(DMUS_E_SYNTHACTIVE
),
341 FE(DMUS_E_CANNOTREAD
),
342 FE(DMUS_E_DMUSIC_RELEASED
),
343 FE(DMUS_E_BUFFER_EMPTY
),
344 FE(DMUS_E_BUFFER_FULL
),
345 FE(DMUS_E_PORT_NOT_CAPTURE
),
346 FE(DMUS_E_PORT_NOT_RENDER
),
347 FE(DMUS_E_DSOUND_NOT_SET
),
348 FE(DMUS_E_ALREADY_ACTIVATED
),
349 FE(DMUS_E_INVALIDBUFFER
),
350 FE(DMUS_E_WAVEFORMATNOTSUPPORTED
),
351 FE(DMUS_E_SYNTHINACTIVE
),
352 FE(DMUS_E_DSOUND_ALREADY_SET
),
353 FE(DMUS_E_INVALID_EVENT
),
354 FE(DMUS_E_UNSUPPORTED_STREAM
),
355 FE(DMUS_E_ALREADY_INITED
),
356 FE(DMUS_E_INVALID_BAND
),
357 FE(DMUS_E_TRACK_HDR_NOT_FIRST_CK
),
358 FE(DMUS_E_TOOL_HDR_NOT_FIRST_CK
),
359 FE(DMUS_E_INVALID_TRACK_HDR
),
360 FE(DMUS_E_INVALID_TOOL_HDR
),
361 FE(DMUS_E_ALL_TOOLS_FAILED
),
362 FE(DMUS_E_ALL_TRACKS_FAILED
),
363 FE(DMUS_E_NOT_FOUND
),
365 FE(DMUS_E_TYPE_DISABLED
),
366 FE(DMUS_E_TYPE_UNSUPPORTED
),
367 FE(DMUS_E_TIME_PAST
),
368 FE(DMUS_E_TRACK_NOT_FOUND
),
369 FE(DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT
),
370 FE(DMUS_E_NO_MASTER_CLOCK
),
371 FE(DMUS_E_LOADER_NOCLASSID
),
372 FE(DMUS_E_LOADER_BADPATH
),
373 FE(DMUS_E_LOADER_FAILEDOPEN
),
374 FE(DMUS_E_LOADER_FORMATNOTSUPPORTED
),
375 FE(DMUS_E_LOADER_FAILEDCREATE
),
376 FE(DMUS_E_LOADER_OBJECTNOTFOUND
),
377 FE(DMUS_E_LOADER_NOFILENAME
),
378 FE(DMUS_E_INVALIDFILE
),
379 FE(DMUS_E_ALREADY_EXISTS
),
380 FE(DMUS_E_OUT_OF_RANGE
),
381 FE(DMUS_E_SEGMENT_INIT_FAILED
),
382 FE(DMUS_E_ALREADY_SENT
),
383 FE(DMUS_E_CANNOT_FREE
),
384 FE(DMUS_E_CANNOT_OPEN_PORT
),
385 FE(DMUS_E_CANNOT_CONVERT
),
386 FE(DMUS_E_DESCEND_CHUNK_FAIL
),
387 FE(DMUS_E_NOT_LOADED
),
388 FE(DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE
),
389 FE(DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE
),
390 FE(DMUS_E_SCRIPT_ERROR_IN_SCRIPT
),
391 FE(DMUS_E_SCRIPT_CANTLOAD_OLEAUT32
),
392 FE(DMUS_E_SCRIPT_LOADSCRIPT_ERROR
),
393 FE(DMUS_E_SCRIPT_INVALID_FILE
),
394 FE(DMUS_E_INVALID_SCRIPTTRACK
),
395 FE(DMUS_E_SCRIPT_VARIABLE_NOT_FOUND
),
396 FE(DMUS_E_SCRIPT_ROUTINE_NOT_FOUND
),
397 FE(DMUS_E_SCRIPT_CONTENT_READONLY
),
398 FE(DMUS_E_SCRIPT_NOT_A_REFERENCE
),
399 FE(DMUS_E_SCRIPT_VALUE_NOT_SUPPORTED
),
400 FE(DMUS_E_INVALID_SEGMENTTRIGGERTRACK
),
401 FE(DMUS_E_INVALID_LYRICSTRACK
),
402 FE(DMUS_E_INVALID_PARAMCONTROLTRACK
),
403 FE(DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR
),
404 FE(DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR
),
405 FE(DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE
),
406 FE(DMUS_E_AUDIOPATHS_NOT_VALID
),
407 FE(DMUS_E_AUDIOPATHS_IN_USE
),
408 FE(DMUS_E_NO_AUDIOPATH_CONFIG
),
409 FE(DMUS_E_AUDIOPATH_INACTIVE
),
410 FE(DMUS_E_AUDIOPATH_NOBUFFER
),
411 FE(DMUS_E_AUDIOPATH_NOPORT
),
412 FE(DMUS_E_NO_AUDIOPATH
),
413 FE(DMUS_E_INVALIDCHUNK
),
414 FE(DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER
),
415 FE(DMUS_E_INVALID_CONTAINER_OBJECT
)
419 for (i
= 0; i
< sizeof(codes
)/sizeof(codes
[0]); i
++) {
420 if (code
== codes
[i
].val
)
421 return codes
[i
].name
;
424 /* if we didn't find it, return value */
425 return wine_dbg_sprintf("0x%08X", code
);
429 /* generic flag-dumping function */
430 static const char* debugstr_flags (DWORD flags
, const flag_info
* names
, size_t num_names
){
431 static char buffer
[128] = "", *ptr
= &buffer
[0];
433 int size
= sizeof(buffer
);
435 for (i
=0; i
< num_names
; i
++) {
436 if ((flags
& names
[i
].val
)) {
437 int cnt
= snprintf(ptr
, size
, "%s ", names
[i
].name
);
438 if (cnt
< 0 || cnt
>= size
) break;
448 /* dump DMUS_OBJ flags */
449 static const char *debugstr_DMUS_OBJ_FLAGS (DWORD flagmask
) {
450 static const flag_info flags
[] = {
454 FE(DMUS_OBJ_CATEGORY
),
455 FE(DMUS_OBJ_FILENAME
),
456 FE(DMUS_OBJ_FULLPATH
),
458 FE(DMUS_OBJ_VERSION
),
464 return debugstr_flags (flagmask
, flags
, sizeof(flags
)/sizeof(flags
[0]));
467 /* dump DMUS_CONTAINER flags */
468 static const char *debugstr_DMUS_CONTAINER_FLAGS (DWORD flagmask
) {
469 static const flag_info flags
[] = {
470 FE(DMUS_CONTAINER_NOLOADS
)
472 return debugstr_flags (flagmask
, flags
, sizeof(flags
)/sizeof(flags
[0]));
475 /* dump DMUS_CONTAINED_OBJF flags */
476 static const char *debugstr_DMUS_CONTAINED_OBJF_FLAGS (DWORD flagmask
) {
477 static const flag_info flags
[] = {
478 FE(DMUS_CONTAINED_OBJF_KEEP
)
480 return debugstr_flags (flagmask
, flags
, sizeof(flags
)/sizeof(flags
[0]));
483 /* Dump whole DMUS_OBJECTDESC struct */
484 void dump_DMUS_OBJECTDESC(LPDMUS_OBJECTDESC desc
)
486 TRACE("DMUS_OBJECTDESC (%p):\n", desc
);
487 TRACE(" - dwSize = %d\n", desc
->dwSize
);
488 TRACE(" - dwValidData = %s\n", debugstr_DMUS_OBJ_FLAGS (desc
->dwValidData
));
489 if (desc
->dwValidData
& DMUS_OBJ_CLASS
) TRACE(" - guidClass = %s\n", debugstr_dmguid(&desc
->guidClass
));
490 if (desc
->dwValidData
& DMUS_OBJ_OBJECT
) TRACE(" - guidObject = %s\n", debugstr_guid(&desc
->guidObject
));
491 if (desc
->dwValidData
& DMUS_OBJ_DATE
) TRACE(" - ftDate = %s\n", debugstr_filetime (&desc
->ftDate
));
492 if (desc
->dwValidData
& DMUS_OBJ_VERSION
) TRACE(" - vVersion = %s\n", debugstr_dmversion(&desc
->vVersion
));
493 if (desc
->dwValidData
& DMUS_OBJ_NAME
) TRACE(" - wszName = %s\n", debugstr_w(desc
->wszName
));
494 if (desc
->dwValidData
& DMUS_OBJ_CATEGORY
) TRACE(" - wszCategory = %s\n", debugstr_w(desc
->wszCategory
));
495 if (desc
->dwValidData
& DMUS_OBJ_FILENAME
) TRACE(" - wszFileName = %s\n", debugstr_w(desc
->wszFileName
));
496 if (desc
->dwValidData
& DMUS_OBJ_MEMORY
) TRACE(" - llMemLength = 0x%s\n - pbMemData = %p\n",
497 wine_dbgstr_longlong(desc
->llMemLength
), desc
->pbMemData
);
498 if (desc
->dwValidData
& DMUS_OBJ_STREAM
) TRACE(" - pStream = %p\n", desc
->pStream
);
501 const char *debugstr_DMUS_IO_CONTAINER_HEADER (LPDMUS_IO_CONTAINER_HEADER pHeader
) {
503 char buffer
[1024], *ptr
= buffer
;
505 ptr
+= sprintf(ptr
, "DMUS_IO_CONTAINER_HEADER (%p):", pHeader
);
506 ptr
+= sprintf(ptr
, "\n - dwFlags = %s", debugstr_DMUS_CONTAINER_FLAGS(pHeader
->dwFlags
));
508 return wine_dbg_sprintf("%s", buffer
);
510 return wine_dbg_sprintf("(NULL)");
514 const char *debugstr_DMUS_IO_CONTAINED_OBJECT_HEADER (LPDMUS_IO_CONTAINED_OBJECT_HEADER pHeader
) {
516 char buffer
[1024], *ptr
= buffer
;
518 ptr
+= sprintf(ptr
, "DMUS_IO_CONTAINED_OBJECT_HEADER (%p):", pHeader
);
519 ptr
+= sprintf(ptr
, "\n - guidClassID = %s", debugstr_dmguid(&pHeader
->guidClassID
));
520 ptr
+= sprintf(ptr
, "\n - dwFlags = %s", debugstr_DMUS_CONTAINED_OBJF_FLAGS (pHeader
->dwFlags
));
521 ptr
+= sprintf(ptr
, "\n - ckid = %s", debugstr_fourcc (pHeader
->ckid
));
522 ptr
+= sprintf(ptr
, "\n - fccType = %s", debugstr_fourcc (pHeader
->fccType
));
524 return wine_dbg_sprintf("%s", buffer
);
526 return wine_dbg_sprintf("(NULL)");