1 /* DirectMusic Wave Main
3 * Copyright (C) 2003-2004 Rok Mandeljc
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (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
13 * GNU Library General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #include "dswave_private.h"
24 WINE_DEFAULT_DEBUG_CHANNEL(dswave);
28 ICOM_VFIELD(IClassFactory);
32 /******************************************************************
33 * DirectMusicWave ClassFactory
35 static HRESULT WINAPI WaveCF_QueryInterface(LPCLASSFACTORY iface,REFIID riid,LPVOID *ppobj) {
36 ICOM_THIS(IClassFactoryImpl,iface);
37 FIXME("(%p, %s, %p): stub\n", This, debugstr_dmguid(riid), ppobj);
41 static ULONG WINAPI WaveCF_AddRef(LPCLASSFACTORY iface) {
42 ICOM_THIS(IClassFactoryImpl,iface);
46 static ULONG WINAPI WaveCF_Release(LPCLASSFACTORY iface) {
47 ICOM_THIS(IClassFactoryImpl,iface);
48 /* static class, won't be freed */
52 static HRESULT WINAPI WaveCF_CreateInstance(LPCLASSFACTORY iface, LPUNKNOWN pOuter, REFIID riid, LPVOID *ppobj) {
53 ICOM_THIS(IClassFactoryImpl,iface);
54 TRACE ("(%p, %p, %s, %p)\n", This, pOuter, debugstr_dmguid(riid), ppobj);
55 return DMUSIC_CreateDirectMusicWaveImpl (riid, ppobj, pOuter);
58 static HRESULT WINAPI WaveCF_LockServer(LPCLASSFACTORY iface,BOOL dolock) {
59 ICOM_THIS(IClassFactoryImpl,iface);
60 FIXME("(%p, %d): stub\n", This, dolock);
64 static ICOM_VTABLE(IClassFactory) WaveCF_Vtbl = {
65 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
66 WaveCF_QueryInterface,
69 WaveCF_CreateInstance,
73 static IClassFactoryImpl Wave_CF = {&WaveCF_Vtbl, 1 };
75 /******************************************************************
80 BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
81 if (fdwReason == DLL_PROCESS_ATTACH) {
82 DisableThreadLibraryCalls(hinstDLL);
83 /* FIXME: Initialisation */
84 } else if (fdwReason == DLL_PROCESS_DETACH) {
92 /******************************************************************
93 * DllCanUnloadNow (DSWAVE.1)
97 HRESULT WINAPI DSWAVE_DllCanUnloadNow(void) {
98 FIXME("(void): stub\n");
103 /******************************************************************
104 * DllGetClassObject (DSWAVE.2)
108 HRESULT WINAPI DSWAVE_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) {
109 TRACE("(%s, %s, %p)\n", debugstr_dmguid(rclsid), debugstr_dmguid(riid), ppv);
110 if (IsEqualCLSID (rclsid, &CLSID_DirectSoundWave) && IsEqualIID (riid, &IID_IClassFactory)) {
111 *ppv = (LPVOID) &Wave_CF;
112 IClassFactory_AddRef((IClassFactory*)*ppv);
116 WARN("(%s, %s, %p): no interface found.\n", debugstr_dmguid(rclsid), debugstr_dmguid(riid), ppv);
117 return CLASS_E_CLASSNOTAVAILABLE;
120 /******************************************************************
125 /* check whether the given DWORD is even (return 0) or odd (return 1) */
126 int even_or_odd (DWORD number) {
127 return (number & 0x1); /* basically, check if bit 0 is set ;) */
130 /* FOURCC to string conversion for debug messages */
131 const char *debugstr_fourcc (DWORD fourcc) {
132 if (!fourcc) return "'null'";
133 return wine_dbg_sprintf ("\'%c%c%c%c\'",
134 (char)(fourcc), (char)(fourcc >> 8),
135 (char)(fourcc >> 16), (char)(fourcc >> 24));
138 /* DMUS_VERSION struct to string conversion for debug messages */
139 const char *debugstr_dmversion (LPDMUS_VERSION version) {
140 if (!version) return "'null'";
141 return wine_dbg_sprintf ("\'%i,%i,%i,%i\'",
142 (int)((version->dwVersionMS && 0xFFFF0000) >> 8), (int)(version->dwVersionMS && 0x0000FFFF),
143 (int)((version->dwVersionLS && 0xFFFF0000) >> 8), (int)(version->dwVersionLS && 0x0000FFFF));
146 /* returns name of given GUID */
147 const char *debugstr_dmguid (const GUID *id) {
148 static const guid_info guids[] = {
150 GE(CLSID_AudioVBScript),
151 GE(CLSID_DirectMusic),
152 GE(CLSID_DirectMusicAudioPath),
153 GE(CLSID_DirectMusicAudioPathConfig),
154 GE(CLSID_DirectMusicAuditionTrack),
155 GE(CLSID_DirectMusicBand),
156 GE(CLSID_DirectMusicBandTrack),
157 GE(CLSID_DirectMusicChordMapTrack),
158 GE(CLSID_DirectMusicChordMap),
159 GE(CLSID_DirectMusicChordTrack),
160 GE(CLSID_DirectMusicCollection),
161 GE(CLSID_DirectMusicCommandTrack),
162 GE(CLSID_DirectMusicComposer),
163 GE(CLSID_DirectMusicContainer),
164 GE(CLSID_DirectMusicGraph),
165 GE(CLSID_DirectMusicLoader),
166 GE(CLSID_DirectMusicLyricsTrack),
167 GE(CLSID_DirectMusicMarkerTrack),
168 GE(CLSID_DirectMusicMelodyFormulationTrack),
169 GE(CLSID_DirectMusicMotifTrack),
170 GE(CLSID_DirectMusicMuteTrack),
171 GE(CLSID_DirectMusicParamControlTrack),
172 GE(CLSID_DirectMusicPatternTrack),
173 GE(CLSID_DirectMusicPerformance),
174 GE(CLSID_DirectMusicScript),
175 GE(CLSID_DirectMusicScriptAutoImpSegment),
176 GE(CLSID_DirectMusicScriptAutoImpPerformance),
177 GE(CLSID_DirectMusicScriptAutoImpSegmentState),
178 GE(CLSID_DirectMusicScriptAutoImpAudioPathConfig),
179 GE(CLSID_DirectMusicScriptAutoImpAudioPath),
180 GE(CLSID_DirectMusicScriptAutoImpSong),
181 GE(CLSID_DirectMusicScriptSourceCodeLoader),
182 GE(CLSID_DirectMusicScriptTrack),
183 GE(CLSID_DirectMusicSection),
184 GE(CLSID_DirectMusicSegment),
185 GE(CLSID_DirectMusicSegmentState),
186 GE(CLSID_DirectMusicSegmentTriggerTrack),
187 GE(CLSID_DirectMusicSegTriggerTrack),
188 GE(CLSID_DirectMusicSeqTrack),
189 GE(CLSID_DirectMusicSignPostTrack),
190 GE(CLSID_DirectMusicSong),
191 GE(CLSID_DirectMusicStyle),
192 GE(CLSID_DirectMusicStyleTrack),
193 GE(CLSID_DirectMusicSynth),
194 GE(CLSID_DirectMusicSynthSink),
195 GE(CLSID_DirectMusicSysExTrack),
196 GE(CLSID_DirectMusicTemplate),
197 GE(CLSID_DirectMusicTempoTrack),
198 GE(CLSID_DirectMusicTimeSigTrack),
199 GE(CLSID_DirectMusicWaveTrack),
200 GE(CLSID_DirectSoundWave),
202 GE(IID_IDirectMusic),
203 GE(IID_IDirectMusic2),
204 GE(IID_IDirectMusic8),
205 GE(IID_IDirectMusicAudioPath),
206 GE(IID_IDirectMusicBand),
207 GE(IID_IDirectMusicBuffer),
208 GE(IID_IDirectMusicChordMap),
209 GE(IID_IDirectMusicCollection),
210 GE(IID_IDirectMusicComposer),
211 GE(IID_IDirectMusicContainer),
212 GE(IID_IDirectMusicDownload),
213 GE(IID_IDirectMusicDownloadedInstrument),
214 GE(IID_IDirectMusicGetLoader),
215 GE(IID_IDirectMusicGraph),
216 GE(IID_IDirectMusicInstrument),
217 GE(IID_IDirectMusicLoader),
218 GE(IID_IDirectMusicLoader8),
219 GE(IID_IDirectMusicObject),
220 GE(IID_IDirectMusicPatternTrack),
221 GE(IID_IDirectMusicPerformance),
222 GE(IID_IDirectMusicPerformance2),
223 GE(IID_IDirectMusicPerformance8),
224 GE(IID_IDirectMusicPort),
225 GE(IID_IDirectMusicPortDownload),
226 GE(IID_IDirectMusicScript),
227 GE(IID_IDirectMusicSegment),
228 GE(IID_IDirectMusicSegment2),
229 GE(IID_IDirectMusicSegment8),
230 GE(IID_IDirectMusicSegmentState),
231 GE(IID_IDirectMusicSegmentState8),
232 GE(IID_IDirectMusicStyle),
233 GE(IID_IDirectMusicStyle8),
234 GE(IID_IDirectMusicSynth),
235 GE(IID_IDirectMusicSynth8),
236 GE(IID_IDirectMusicSynthSink),
237 GE(IID_IDirectMusicThru),
238 GE(IID_IDirectMusicTool),
239 GE(IID_IDirectMusicTool8),
240 GE(IID_IDirectMusicTrack),
241 GE(IID_IDirectMusicTrack8),
243 GE(IID_IPersistStream),
245 GE(IID_IClassFactory),
247 GE(GUID_DirectMusicAllTypes),
248 GE(GUID_NOTIFICATION_CHORD),
249 GE(GUID_NOTIFICATION_COMMAND),
250 GE(GUID_NOTIFICATION_MEASUREANDBEAT),
251 GE(GUID_NOTIFICATION_PERFORMANCE),
252 GE(GUID_NOTIFICATION_RECOMPOSE),
253 GE(GUID_NOTIFICATION_SEGMENT),
256 GE(GUID_CommandParam),
257 GE(GUID_CommandParam2),
258 GE(GUID_CommandParamNext),
259 GE(GUID_IDirectMusicBand),
260 GE(GUID_IDirectMusicChordMap),
261 GE(GUID_IDirectMusicStyle),
263 GE(GUID_Play_Marker),
264 GE(GUID_RhythmParam),
266 GE(GUID_TimeSignature),
267 GE(GUID_Valid_Start_Time),
268 GE(GUID_Clear_All_Bands),
269 GE(GUID_ConnectToDLSCollection),
270 GE(GUID_Disable_Auto_Download),
271 GE(GUID_DisableTempo),
272 GE(GUID_DisableTimeSig),
274 GE(GUID_DownloadToAudioPath),
275 GE(GUID_Enable_Auto_Download),
276 GE(GUID_EnableTempo),
277 GE(GUID_EnableTimeSig),
278 GE(GUID_IgnoreBankSelectForGM),
279 GE(GUID_SeedVariations),
280 GE(GUID_StandardMIDIFile),
282 GE(GUID_UnloadFromAudioPath),
284 GE(GUID_PerfMasterTempo),
285 GE(GUID_PerfMasterVolume),
286 GE(GUID_PerfMasterGrooveLevel),
287 GE(GUID_PerfAutoDownload),
288 GE(GUID_DefaultGMCollection),
289 GE(GUID_Synth_Default),
290 GE(GUID_Buffer_Reverb),
291 GE(GUID_Buffer_EnvReverb),
292 GE(GUID_Buffer_Stereo),
293 GE(GUID_Buffer_3D_Dry),
294 GE(GUID_Buffer_Mono),
295 GE(GUID_DMUS_PROP_GM_Hardware),
296 GE(GUID_DMUS_PROP_GS_Capable),
297 GE(GUID_DMUS_PROP_GS_Hardware),
298 GE(GUID_DMUS_PROP_DLS1),
299 GE(GUID_DMUS_PROP_DLS2),
300 GE(GUID_DMUS_PROP_Effects),
301 GE(GUID_DMUS_PROP_INSTRUMENT2),
302 GE(GUID_DMUS_PROP_LegacyCaps),
303 GE(GUID_DMUS_PROP_MemorySize),
304 GE(GUID_DMUS_PROP_SampleMemorySize),
305 GE(GUID_DMUS_PROP_SamplePlaybackRate),
306 GE(GUID_DMUS_PROP_SetSynthSink),
307 GE(GUID_DMUS_PROP_SinkUsesDSound),
308 GE(GUID_DMUS_PROP_SynthSink_DSOUND),
309 GE(GUID_DMUS_PROP_SynthSink_WAVE),
310 GE(GUID_DMUS_PROP_Volume),
311 GE(GUID_DMUS_PROP_WavesReverb),
312 GE(GUID_DMUS_PROP_WriteLatency),
313 GE(GUID_DMUS_PROP_WritePeriod),
314 GE(GUID_DMUS_PROP_XG_Capable),
315 GE(GUID_DMUS_PROP_XG_Hardware)
320 if (!id) return "(null)";
322 for (i = 0; i < sizeof(guids)/sizeof(guids[0]); i++) {
323 if (IsEqualGUID(id, &guids[i].guid))
324 return guids[i].name;
326 /* if we didn't find it, act like standard debugstr_guid */
327 return debugstr_guid(id);
330 /* returns name of given error code */
331 const char *debugstr_dmreturn (DWORD code) {
332 static const flag_info codes[] = {
335 FE(DMUS_S_PARTIALLOAD),
336 FE(DMUS_S_PARTIALDOWNLOAD),
340 FE(DMUS_S_STRING_TRUNCATED),
341 FE(DMUS_S_LAST_TOOL),
342 FE(DMUS_S_OVER_CHORD),
343 FE(DMUS_S_UP_OCTAVE),
344 FE(DMUS_S_DOWN_OCTAVE),
345 FE(DMUS_S_NOBUFFERCONTROL),
346 FE(DMUS_S_GARBAGE_COLLECTED),
347 FE(DMUS_E_DRIVER_FAILED),
348 FE(DMUS_E_PORTS_OPEN),
349 FE(DMUS_E_DEVICE_IN_USE),
350 FE(DMUS_E_INSUFFICIENTBUFFER),
351 FE(DMUS_E_BUFFERNOTSET),
352 FE(DMUS_E_BUFFERNOTAVAILABLE),
353 FE(DMUS_E_NOTADLSCOL),
354 FE(DMUS_E_INVALIDOFFSET),
355 FE(DMUS_E_ALREADY_LOADED),
356 FE(DMUS_E_INVALIDPOS),
357 FE(DMUS_E_INVALIDPATCH),
358 FE(DMUS_E_CANNOTSEEK),
359 FE(DMUS_E_CANNOTWRITE),
360 FE(DMUS_E_CHUNKNOTFOUND),
361 FE(DMUS_E_INVALID_DOWNLOADID),
362 FE(DMUS_E_NOT_DOWNLOADED_TO_PORT),
363 FE(DMUS_E_ALREADY_DOWNLOADED),
364 FE(DMUS_E_UNKNOWN_PROPERTY),
365 FE(DMUS_E_SET_UNSUPPORTED),
366 FE(DMUS_E_GET_UNSUPPORTED),
368 FE(DMUS_E_BADARTICULATION),
369 FE(DMUS_E_BADINSTRUMENT),
370 FE(DMUS_E_BADWAVELINK),
371 FE(DMUS_E_NOARTICULATION),
374 FE(DMUS_E_BADOFFSETTABLE),
375 FE(DMUS_E_UNKNOWNDOWNLOAD),
376 FE(DMUS_E_NOSYNTHSINK),
377 FE(DMUS_E_ALREADYOPEN),
378 FE(DMUS_E_ALREADYCLOSED),
379 FE(DMUS_E_SYNTHNOTCONFIGURED),
380 FE(DMUS_E_SYNTHACTIVE),
381 FE(DMUS_E_CANNOTREAD),
382 FE(DMUS_E_DMUSIC_RELEASED),
383 FE(DMUS_E_BUFFER_EMPTY),
384 FE(DMUS_E_BUFFER_FULL),
385 FE(DMUS_E_PORT_NOT_CAPTURE),
386 FE(DMUS_E_PORT_NOT_RENDER),
387 FE(DMUS_E_DSOUND_NOT_SET),
388 FE(DMUS_E_ALREADY_ACTIVATED),
389 FE(DMUS_E_INVALIDBUFFER),
390 FE(DMUS_E_WAVEFORMATNOTSUPPORTED),
391 FE(DMUS_E_SYNTHINACTIVE),
392 FE(DMUS_E_DSOUND_ALREADY_SET),
393 FE(DMUS_E_INVALID_EVENT),
394 FE(DMUS_E_UNSUPPORTED_STREAM),
395 FE(DMUS_E_ALREADY_INITED),
396 FE(DMUS_E_INVALID_BAND),
397 FE(DMUS_E_TRACK_HDR_NOT_FIRST_CK),
398 FE(DMUS_E_TOOL_HDR_NOT_FIRST_CK),
399 FE(DMUS_E_INVALID_TRACK_HDR),
400 FE(DMUS_E_INVALID_TOOL_HDR),
401 FE(DMUS_E_ALL_TOOLS_FAILED),
402 FE(DMUS_E_ALL_TRACKS_FAILED),
403 FE(DMUS_E_NOT_FOUND),
405 FE(DMUS_E_TYPE_DISABLED),
406 FE(DMUS_E_TYPE_UNSUPPORTED),
407 FE(DMUS_E_TIME_PAST),
408 FE(DMUS_E_TRACK_NOT_FOUND),
409 FE(DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT),
410 FE(DMUS_E_NO_MASTER_CLOCK),
411 FE(DMUS_E_LOADER_NOCLASSID),
412 FE(DMUS_E_LOADER_BADPATH),
413 FE(DMUS_E_LOADER_FAILEDOPEN),
414 FE(DMUS_E_LOADER_FORMATNOTSUPPORTED),
415 FE(DMUS_E_LOADER_FAILEDCREATE),
416 FE(DMUS_E_LOADER_OBJECTNOTFOUND),
417 FE(DMUS_E_LOADER_NOFILENAME),
418 FE(DMUS_E_INVALIDFILE),
419 FE(DMUS_E_ALREADY_EXISTS),
420 FE(DMUS_E_OUT_OF_RANGE),
421 FE(DMUS_E_SEGMENT_INIT_FAILED),
422 FE(DMUS_E_ALREADY_SENT),
423 FE(DMUS_E_CANNOT_FREE),
424 FE(DMUS_E_CANNOT_OPEN_PORT),
425 FE(DMUS_E_CANNOT_CONVERT),
426 FE(DMUS_E_DESCEND_CHUNK_FAIL),
427 FE(DMUS_E_NOT_LOADED),
428 FE(DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE),
429 FE(DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE),
430 FE(DMUS_E_SCRIPT_ERROR_IN_SCRIPT),
431 FE(DMUS_E_SCRIPT_CANTLOAD_OLEAUT32),
432 FE(DMUS_E_SCRIPT_LOADSCRIPT_ERROR),
433 FE(DMUS_E_SCRIPT_INVALID_FILE),
434 FE(DMUS_E_INVALID_SCRIPTTRACK),
435 FE(DMUS_E_SCRIPT_VARIABLE_NOT_FOUND),
436 FE(DMUS_E_SCRIPT_ROUTINE_NOT_FOUND),
437 FE(DMUS_E_SCRIPT_CONTENT_READONLY),
438 FE(DMUS_E_SCRIPT_NOT_A_REFERENCE),
439 FE(DMUS_E_SCRIPT_VALUE_NOT_SUPPORTED),
440 FE(DMUS_E_INVALID_SEGMENTTRIGGERTRACK),
441 FE(DMUS_E_INVALID_LYRICSTRACK),
442 FE(DMUS_E_INVALID_PARAMCONTROLTRACK),
443 FE(DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR),
444 FE(DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR),
445 FE(DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE),
446 FE(DMUS_E_AUDIOPATHS_NOT_VALID),
447 FE(DMUS_E_AUDIOPATHS_IN_USE),
448 FE(DMUS_E_NO_AUDIOPATH_CONFIG),
449 FE(DMUS_E_AUDIOPATH_INACTIVE),
450 FE(DMUS_E_AUDIOPATH_NOBUFFER),
451 FE(DMUS_E_AUDIOPATH_NOPORT),
452 FE(DMUS_E_NO_AUDIOPATH),
453 FE(DMUS_E_INVALIDCHUNK),
454 FE(DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER),
455 FE(DMUS_E_INVALID_CONTAINER_OBJECT)
458 for (i = 0; i < sizeof(codes)/sizeof(codes[0]); i++) {
459 if (code == codes[i].val)
460 return codes[i].name;
462 /* if we didn't find it, return value */
463 return wine_dbg_sprintf("0x%08lx", code);
466 /* generic flag-dumping function */
467 const char* debugstr_flags (DWORD flags, const flag_info* names, size_t num_names){
468 char buffer[128] = "", *ptr = &buffer[0];
469 unsigned int i, size = sizeof(buffer);
471 for (i=0; i < num_names; i++)
473 if ((flags & names[i].val) || /* standard flag*/
474 ((!flags) && (!names[i].val))) { /* zero value only */
475 int cnt = snprintf(ptr, size, "%s ", names[i].name);
476 if (cnt < 0 || cnt >= size) break;
482 return wine_dbg_sprintf("%s", buffer);
485 /* dump DMUS_OBJ flags */
486 const char *debugstr_DMUS_OBJ_FLAGS (DWORD flagmask) {
487 static const flag_info flags[] = {
491 FE(DMUS_OBJ_CATEGORY),
492 FE(DMUS_OBJ_FILENAME),
493 FE(DMUS_OBJ_FULLPATH),
495 FE(DMUS_OBJ_VERSION),
501 return debugstr_flags (flagmask, flags, sizeof(flags)/sizeof(flags[0]));
504 /* dump whole DMUS_OBJECTDESC struct */
505 const char *debugstr_DMUS_OBJECTDESC (LPDMUS_OBJECTDESC pDesc) {
507 char buffer[1024] = "", *ptr = &buffer[0];
509 ptr += sprintf(ptr, "DMUS_OBJECTDESC (%p):\n", pDesc);
510 ptr += sprintf(ptr, " - dwSize = %ld\n", pDesc->dwSize);
511 ptr += sprintf(ptr, " - dwValidData = %s\n", debugstr_DMUS_OBJ_FLAGS (pDesc->dwValidData));
512 if (pDesc->dwValidData & DMUS_OBJ_CLASS) ptr += sprintf(ptr, " - guidClass = %s\n", debugstr_dmguid(&pDesc->guidClass));
513 if (pDesc->dwValidData & DMUS_OBJ_OBJECT) ptr += sprintf(ptr, " - guidObject = %s\n", debugstr_guid(&pDesc->guidObject));
514 if (pDesc->dwValidData & DMUS_OBJ_DATE) ptr += sprintf(ptr, " - ftDate = FIXME\n");
515 if (pDesc->dwValidData & DMUS_OBJ_VERSION) ptr += sprintf(ptr, " - vVersion = %s\n", debugstr_dmversion(&pDesc->vVersion));
516 if (pDesc->dwValidData & DMUS_OBJ_NAME) ptr += sprintf(ptr, " - wszName = %s\n", debugstr_w(pDesc->wszName));
517 if (pDesc->dwValidData & DMUS_OBJ_CATEGORY) ptr += sprintf(ptr, " - wszCategory = %s\n", debugstr_w(pDesc->wszCategory));
518 if (pDesc->dwValidData & DMUS_OBJ_FILENAME) ptr += sprintf(ptr, " - wszFileName = %s\n", debugstr_w(pDesc->wszFileName));
519 if (pDesc->dwValidData & DMUS_OBJ_MEMORY) ptr += sprintf(ptr, " - llMemLength = %lli\n - pbMemData = %p\n", pDesc->llMemLength, pDesc->pbMemData);
520 if (pDesc->dwValidData & DMUS_OBJ_STREAM) ptr += sprintf(ptr, " - pStream = %p", pDesc->pStream);
522 return wine_dbg_sprintf("%s", buffer);
524 return wine_dbg_sprintf("(NULL)");