@samitouri / QOSamiQemu / commits / 54f02d8551

audio/dsound: replace custom logging with error_report & trace

The DirectSound audio backend uses its own logging infrastructure (AUD_log, AUD_vlog, dolog) and the AUDIO_CAP macro. This approach is inconsistent with the rest of QEMU and makes the output harder to filter and configure. Replace the custom logging with standard QEMU error reporting. Reviewed-by: Mark Cave-Ayland <mark.caveayland@nutanix.com> Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>

Marc-André Lureau committed Jan 20, 2026 at 18:43 UTC 54f02d8551bec14b669ca7efdb6ddc3bf66a7e11
4 files changed +108 -134
audio/audio_win_int.c
+15 -16
@@ -2,12 +2,12 @@
2
3 #include "qemu/osdep.h"
4
5 -#define AUDIO_CAP "win-int"
5 #include <windows.h>
6 #include <mmreg.h>
7 #include <mmsystem.h>
8
9 #include "qemu/audio.h"
10 +#include "qemu/error-report.h"
11 #include "audio_int.h"
12 #include "audio_win_int.h"
13
@@ -53,7 +53,7 @@ int waveformat_from_audio_settings (WAVEFORMATEX *wfx,
53 break;
54
55 default:
56 - dolog("Internal logic error: Bad audio format %d\n", as->fmt);
56 + error_report("dsound: Internal logic error: Bad audio format %d", as->fmt);
57 return -1;
58 }
59
@@ -64,7 +64,7 @@ int waveformat_to_audio_settings (WAVEFORMATEX *wfx,
64 struct audsettings *as)
65 {
66 if (!wfx->nSamplesPerSec) {
67 - dolog ("Invalid wave format, frequency is zero\n");
67 + error_report("dsound: Invalid wave format, frequency is zero");
68 return -1;
69 }
70 as->freq = wfx->nSamplesPerSec;
@@ -79,10 +79,9 @@ int waveformat_to_audio_settings (WAVEFORMATEX *wfx,
79 break;
80
81 default:
82 - dolog (
83 - "Invalid wave format, number of channels is not 1 or 2, but %d\n",
84 - wfx->nChannels
85 - );
82 + error_report("dsound: Invalid wave format, "
83 + "number of channels is not 1 or 2, but %d",
84 + wfx->nChannels);
85 return -1;
86 }
87
@@ -101,9 +100,9 @@ int waveformat_to_audio_settings (WAVEFORMATEX *wfx,
100 break;
101
102 default:
104 - dolog("Invalid PCM wave format, bits per sample is not "
105 - "8, 16 or 32, but %d\n",
106 - wfx->wBitsPerSample);
103 + error_report("dsound: Invalid PCM wave format, bits per sample is not "
104 + "8, 16 or 32, but %d",
105 + wfx->wBitsPerSample);
106 return -1;
107 }
108 } else if (wfx->wFormatTag == WAVE_FORMAT_IEEE_FLOAT) {
@@ -113,15 +112,15 @@ int waveformat_to_audio_settings (WAVEFORMATEX *wfx,
112 break;
113
114 default:
116 - dolog("Invalid IEEE_FLOAT wave format, bits per sample is not "
117 - "32, but %d\n",
118 - wfx->wBitsPerSample);
115 + error_report("dsound: Invalid IEEE_FLOAT wave format, "
116 + "bits per sample is not 32, but %d",
117 + wfx->wBitsPerSample);
118 return -1;
119 }
120 } else {
122 - dolog("Invalid wave format, tag is not PCM and not IEEE_FLOAT, "
123 - "but %d\n",
124 - wfx->wFormatTag);
121 + error_report("dsound: Invalid wave format, "
122 + "tag is not PCM and not IEEE_FLOAT, but %d",
123 + wfx->wFormatTag);
124 return -1;
125 }
126
audio/dsound_template.h
+34 -38
@@ -53,9 +53,9 @@ static int glue (dsound_unlock_, TYPE) (
53 {
54 HRESULT hr;
55
56 - hr = glue (IFACE, _Unlock) (buf, p1, blen1, p2, blen2);
57 - if (FAILED (hr)) {
58 - dsound_logerr (hr, "Could not unlock " NAME "\n");
56 + hr = glue(IFACE, _Unlock)(buf, p1, blen1, p2, blen2);
57 + if (FAILED(hr)) {
58 + dsound_logerr(hr, "Could not unlock " NAME);
59 return -1;
60 }
61
@@ -85,35 +85,35 @@ static int glue (dsound_lock_, TYPE) (
85 #endif
86 hr = glue(IFACE, _Lock)(buf, pos, len, p1p, blen1p, p2p, blen2p, flag);
87
88 - if (FAILED (hr)) {
88 + if (FAILED(hr)) {
89 #ifndef DSBTYPE_IN
90 if (hr == DSERR_BUFFERLOST) {
91 - if (glue (dsound_restore_, TYPE) (buf, s)) {
92 - dsound_logerr (hr, "Could not lock " NAME "\n");
91 + if (glue(dsound_restore_, TYPE)(buf, s)) {
92 + dsound_logerr(hr, "Could not lock " NAME);
93 }
94 goto fail;
95 }
96 #endif
97 - dsound_logerr (hr, "Could not lock " NAME "\n");
97 + dsound_logerr(hr, "Could not lock " NAME);
98 goto fail;
99 }
100
101 if ((p1p && *p1p && (*blen1p % info->bytes_per_frame)) ||
102 (p2p && *p2p && (*blen2p % info->bytes_per_frame))) {
103 - dolog("DirectSound returned misaligned buffer %ld %ld\n",
104 - *blen1p, *blen2p);
103 + error_report("dsound: returned misaligned buffer %ld %ld",
104 + *blen1p, *blen2p);
105 glue(dsound_unlock_, TYPE)(buf, *p1p, p2p ? *p2p : NULL, *blen1p,
106 blen2p ? *blen2p : 0);
107 goto fail;
108 }
109
110 if (p1p && !*p1p && *blen1p) {
111 - dolog("warning: !p1 && blen1=%ld\n", *blen1p);
111 + warn_report("dsound: !p1 && blen1=%ld", *blen1p);
112 *blen1p = 0;
113 }
114
115 if (p2p && !*p2p && *blen2p) {
116 - dolog("warning: !p2 && blen2=%ld\n", *blen2p);
116 + warn_report("dsound: !p2 && blen2=%ld", *blen2p);
117 *blen2p = 0;
118 }
119
@@ -143,14 +143,14 @@ static void dsound_fini_out (HWVoiceOut *hw)
143 #endif
144
145 if (ds->FIELD) {
146 - hr = glue (IFACE, _Stop) (ds->FIELD);
147 - if (FAILED (hr)) {
148 - dsound_logerr (hr, "Could not stop " NAME "\n");
146 + hr = glue(IFACE, _Stop)(ds->FIELD);
147 + if (FAILED(hr)) {
148 + dsound_logerr(hr, "Could not stop " NAME);
149 }
150
151 - hr = glue (IFACE, _Release) (ds->FIELD);
152 - if (FAILED (hr)) {
153 - dsound_logerr (hr, "Could not release " NAME "\n");
151 + hr = glue(IFACE, _Release)(ds->FIELD);
152 + if (FAILED(hr)) {
153 + dsound_logerr(hr, "Could not release " NAME);
154 }
155 ds->FIELD = NULL;
156 }
@@ -182,7 +182,8 @@ static int dsound_init_out(HWVoiceOut *hw, struct audsettings *as)
182 #endif
183
184 if (!s->FIELD2) {
185 - dolog ("Attempt to initialize voice without " NAME2 " object\n");
185 + error_report("dsound: Attempt to initialize voice without "
186 + NAME2 " object");
187 return -1;
188 }
189
@@ -212,28 +213,28 @@ static int dsound_init_out(HWVoiceOut *hw, struct audsettings *as)
213 );
214 #endif
215
215 - if (FAILED (hr)) {
216 - dsound_logerr2 (hr, typ, "Could not create " NAME "\n");
216 + if (FAILED(hr)) {
217 + dsound_logerr2(hr, typ, "Could not create " NAME);
218 return -1;
219 }
220
220 - hr = glue (IFACE, _GetFormat) (ds->FIELD, &wfx, sizeof (wfx), NULL);
221 - if (FAILED (hr)) {
222 - dsound_logerr2 (hr, typ, "Could not get " NAME " format\n");
221 + hr = glue(IFACE, _GetFormat)(ds->FIELD, &wfx, sizeof(wfx), NULL);
222 + if (FAILED(hr)) {
223 + dsound_logerr2(hr, typ, "Could not get " NAME " format");
224 goto fail0;
225 }
226
226 -#ifdef DEBUG_DSOUND
227 - dolog (NAME "\n");
228 - print_wave_format (&wfx);
229 -#endif
227 + trace_dsound_wave_format(
228 + wfx.wFormatTag, wfx.nChannels,
229 + wfx.nSamplesPerSec, wfx.nAvgBytesPerSec,
230 + wfx.nBlockAlign, wfx.wBitsPerSample, wfx.cbSize);
231
232 memset (&bc, 0, sizeof (bc));
233 bc.dwSize = sizeof (bc);
234
234 - hr = glue (IFACE, _GetCaps) (ds->FIELD, &bc);
235 - if (FAILED (hr)) {
236 - dsound_logerr2 (hr, typ, "Could not get " NAME " format\n");
235 + hr = glue(IFACE, _GetCaps)(ds->FIELD, &bc);
236 + if (FAILED(hr)) {
237 + dsound_logerr2(hr, typ, "Could not get " NAME " caps");
238 goto fail0;
239 }
240
@@ -247,18 +248,13 @@ static int dsound_init_out(HWVoiceOut *hw, struct audsettings *as)
248 audio_pcm_init_info (&hw->info, &obt_as);
249
250 if (bc.dwBufferBytes % hw->info.bytes_per_frame) {
250 - dolog (
251 - "GetCaps returned misaligned buffer size %ld, alignment %d\n",
252 - bc.dwBufferBytes, hw->info.bytes_per_frame
253 - );
251 + warn_report("dsound: GetCaps returned misaligned buffer size %ld, "
252 + "alignment %d", bc.dwBufferBytes, hw->info.bytes_per_frame);
253 }
254 hw->size_emul = bc.dwBufferBytes;
255 hw->samples = bc.dwBufferBytes / hw->info.bytes_per_frame;
256
258 -#ifdef DEBUG_DSOUND
259 - dolog ("caps %ld, desc %ld\n",
260 - bc.dwBufferBytes, bd.dwBufferBytes);
261 -#endif
257 + trace_dsound_buffer_bytes(bc.dwBufferBytes, bd.dwBufferBytes);
258 return 0;
259
260 fail0:
audio/dsoundaudio.c
+54 -80
@@ -28,8 +28,7 @@
28
29 #include "qemu/osdep.h"
30 #include "qemu/audio.h"
31 -
32 -#define AUDIO_CAP "dsound"
31 +#include "qemu/error-report.h"
32 #include "audio_int.h"
33 #include "qemu/module.h"
34 #include "qapi/error.h"
@@ -40,6 +39,7 @@
39 #include <objbase.h>
40 #include <dsound.h>
41
42 +#include "trace.h"
43 #include "audio_win_int.h"
44
45 #define TYPE_AUDIO_DSOUND "audio-dsound"
@@ -55,9 +55,6 @@ struct AudioDsound {
55 struct audsettings settings;
56 };
57
58 -
59 -/* #define DEBUG_DSOUND */
60 -
58 typedef struct {
59 HWVoiceOut hw;
60 LPDIRECTSOUNDBUFFER dsound_buffer;
@@ -214,56 +211,37 @@ static void dsound_log_hresult(HRESULT hr)
211 const char *str = dserror(hr);
212
213 if (str) {
217 - AUD_log (AUDIO_CAP, "Reason: %s\n", str);
214 + error_printf(" Reason: %s", str);
215 } else {
219 - AUD_log (AUDIO_CAP, "Reason: Unknown (HRESULT: 0x%lx)\n", hr);
216 + error_printf(" Reason: Unknown (HRESULT: 0x%lx)", hr);
217 }
218 }
219
223 -static void G_GNUC_PRINTF (2, 3) dsound_logerr (
224 - HRESULT hr,
225 - const char *fmt,
226 - ...
227 - )
220 +static void G_GNUC_PRINTF(2, 3) dsound_logerr(HRESULT hr, const char *fmt, ...)
221 {
222 va_list ap;
223
231 - va_start (ap, fmt);
232 - AUD_vlog (AUDIO_CAP, fmt, ap);
233 - va_end (ap);
234 -
235 - dsound_log_hresult (hr);
224 + error_printf("dsound: ");
225 + va_start(ap, fmt);
226 + error_vprintf(fmt, ap);
227 + va_end(ap);
228 + dsound_log_hresult(hr);
229 + error_printf("\n");
230 }
231
238 -static void G_GNUC_PRINTF (3, 4) dsound_logerr2 (
239 - HRESULT hr,
240 - const char *typ,
241 - const char *fmt,
242 - ...
243 - )
232 +static void G_GNUC_PRINTF(3, 4) dsound_logerr2(HRESULT hr, const char *typ,
233 + const char *fmt, ...)
234 {
235 va_list ap;
236
247 - AUD_log (AUDIO_CAP, "Could not initialize %s\n", typ);
248 - va_start (ap, fmt);
249 - AUD_vlog (AUDIO_CAP, fmt, ap);
250 - va_end (ap);
251 -
252 - dsound_log_hresult (hr);
237 + error_printf("dsound: Could not initialize %s: ", typ);
238 + va_start(ap, fmt);
239 + error_vprintf(fmt, ap);
240 + va_end(ap);
241 + dsound_log_hresult(hr);
242 + error_printf("\n");
243 }
244
255 -#ifdef DEBUG_DSOUND
256 -static void print_wave_format (WAVEFORMATEX *wfx)
257 -{
258 - dolog ("tag = %d\n", wfx->wFormatTag);
259 - dolog ("nChannels = %d\n", wfx->nChannels);
260 - dolog ("nSamplesPerSec = %ld\n", wfx->nSamplesPerSec);
261 - dolog ("nAvgBytesPerSec = %ld\n", wfx->nAvgBytesPerSec);
262 - dolog ("nBlockAlign = %d\n", wfx->nBlockAlign);
263 - dolog ("wBitsPerSample = %d\n", wfx->wBitsPerSample);
264 - dolog ("cbSize = %d\n", wfx->cbSize);
265 -}
266 -#endif
245
246 static int dsound_restore_out (LPDIRECTSOUNDBUFFER dsb, AudioDsound *s)
247 {
@@ -272,7 +250,7 @@ static int dsound_restore_out (LPDIRECTSOUNDBUFFER dsb, AudioDsound *s)
250 hr = IDirectSoundBuffer_Restore (dsb);
251
252 if (hr != DS_OK) {
275 - dsound_logerr (hr, "Could not restore playback buffer\n");
253 + dsound_logerr(hr, "Could not restore playback buffer");
254 return -1;
255 }
256 return 0;
@@ -290,7 +268,7 @@ static int dsound_get_status_out (LPDIRECTSOUNDBUFFER dsb, DWORD *statusp,
268
269 hr = IDirectSoundBuffer_GetStatus (dsb, statusp);
270 if (FAILED (hr)) {
293 - dsound_logerr (hr, "Could not get playback buffer status\n");
271 + dsound_logerr(hr, "Could not get playback buffer status");
272 return -1;
273 }
274
@@ -309,7 +287,7 @@ static int dsound_get_status_in (LPDIRECTSOUNDCAPTUREBUFFER dscb,
287
288 hr = IDirectSoundCaptureBuffer_GetStatus (dscb, statusp);
289 if (FAILED (hr)) {
312 - dsound_logerr (hr, "Could not get capture buffer status\n");
290 + dsound_logerr(hr, "Could not get capture buffer status");
291 return -1;
292 }
293
@@ -340,11 +318,7 @@ static void dsound_clear_sample (HWVoiceOut *hw, LPDIRECTSOUNDBUFFER dsb,
318 len1 = blen1 / hw->info.bytes_per_frame;
319 len2 = blen2 / hw->info.bytes_per_frame;
320
343 -#ifdef DEBUG_DSOUND
344 - dolog ("clear %p,%ld,%ld %p,%ld,%ld\n",
345 - p1, blen1, len1,
346 - p2, blen2, len2);
347 -#endif
321 + trace_dsound_clear_sample(p1, blen1, len1, p2, blen2, len2);
322
323 if (p1 && len1) {
324 audio_pcm_info_clear_buf (&hw->info, p1, len1);
@@ -366,40 +340,40 @@ static void dsound_enable_out(HWVoiceOut *hw, bool enable)
340 LPDIRECTSOUNDBUFFER dsb = ds->dsound_buffer;
341
342 if (!dsb) {
369 - dolog ("Attempt to control voice without a buffer\n");
343 + error_report("dsound: Attempt to control voice without a buffer");
344 return;
345 }
346
347 if (enable) {
374 - if (dsound_get_status_out (dsb, &status, s)) {
348 + if (dsound_get_status_out(dsb, &status, s)) {
349 return;
350 }
351
352 if (status & DSBSTATUS_PLAYING) {
379 - dolog ("warning: Voice is already playing\n");
353 + warn_report("dsound: Voice is already playing");
354 return;
355 }
356
383 - dsound_clear_sample (hw, dsb, s);
357 + dsound_clear_sample(hw, dsb, s);
358
385 - hr = IDirectSoundBuffer_Play (dsb, 0, 0, DSBPLAY_LOOPING);
386 - if (FAILED (hr)) {
387 - dsound_logerr (hr, "Could not start playing buffer\n");
359 + hr = IDirectSoundBuffer_Play(dsb, 0, 0, DSBPLAY_LOOPING);
360 + if (FAILED(hr)) {
361 + dsound_logerr(hr, "Could not start playing buffer");
362 return;
363 }
364 } else {
391 - if (dsound_get_status_out (dsb, &status, s)) {
365 + if (dsound_get_status_out(dsb, &status, s)) {
366 return;
367 }
368
369 if (status & DSBSTATUS_PLAYING) {
396 - hr = IDirectSoundBuffer_Stop (dsb);
397 - if (FAILED (hr)) {
398 - dsound_logerr (hr, "Could not stop playing buffer\n");
370 + hr = IDirectSoundBuffer_Stop(dsb);
371 + if (FAILED(hr)) {
372 + dsound_logerr(hr, "Could not stop playing buffer");
373 return;
374 }
375 } else {
402 - dolog ("warning: Voice is not playing\n");
376 + warn_report("dsound: Voice is not playing");
377 }
378 }
379 }
@@ -414,7 +388,7 @@ static size_t dsound_buffer_get_free(HWVoiceOut *hw)
388 hr = IDirectSoundBuffer_GetCurrentPosition(
389 dsb, &ppos, ds->first_time ? &wpos : NULL);
390 if (FAILED(hr)) {
417 - dsound_logerr(hr, "Could not get playback buffer position\n");
391 + dsound_logerr(hr, "Could not get playback buffer position");
392 return 0;
393 }
394
@@ -441,7 +415,7 @@ static void *dsound_get_buffer_out(HWVoiceOut *hw, size_t *size)
415 err = dsound_lock_out(dsb, &hw->info, hw->pos_emul, req_size, &ret, NULL,
416 &act_size, NULL, false, AUDIO_DSOUND(hw->s));
417 if (err) {
444 - dolog("Failed to lock buffer\n");
418 + error_report("dsound: Failed to lock buffer");
419 *size = 0;
420 return NULL;
421 }
@@ -457,7 +431,7 @@ static size_t dsound_put_buffer_out(HWVoiceOut *hw, void *buf, size_t len)
431 int err = dsound_unlock_out(dsb, buf, NULL, len, 0);
432
433 if (err) {
460 - dolog("Failed to unlock buffer!!\n");
434 + error_report("dsound: Failed to unlock buffer");
435 return 0;
436 }
437 hw->pos_emul = (hw->pos_emul + len) % hw->size_emul;
@@ -473,40 +447,40 @@ static void dsound_enable_in(HWVoiceIn *hw, bool enable)
447 LPDIRECTSOUNDCAPTUREBUFFER dscb = ds->dsound_capture_buffer;
448
449 if (!dscb) {
476 - dolog ("Attempt to control capture voice without a buffer\n");
450 + error_report("dsound: Attempt to control capture voice without a buffer");
451 return;
452 }
453
454 if (enable) {
481 - if (dsound_get_status_in (dscb, &status)) {
455 + if (dsound_get_status_in(dscb, &status)) {
456 return;
457 }
458
459 if (status & DSCBSTATUS_CAPTURING) {
486 - dolog ("warning: Voice is already capturing\n");
460 + warn_report("dsound: Voice is already capturing");
461 return;
462 }
463
464 /* clear ?? */
465
492 - hr = IDirectSoundCaptureBuffer_Start (dscb, DSCBSTART_LOOPING);
493 - if (FAILED (hr)) {
494 - dsound_logerr (hr, "Could not start capturing\n");
466 + hr = IDirectSoundCaptureBuffer_Start(dscb, DSCBSTART_LOOPING);
467 + if (FAILED(hr)) {
468 + dsound_logerr(hr, "Could not start capturing");
469 return;
470 }
471 } else {
498 - if (dsound_get_status_in (dscb, &status)) {
472 + if (dsound_get_status_in(dscb, &status)) {
473 return;
474 }
475
476 if (status & DSCBSTATUS_CAPTURING) {
503 - hr = IDirectSoundCaptureBuffer_Stop (dscb);
504 - if (FAILED (hr)) {
505 - dsound_logerr (hr, "Could not stop capturing\n");
477 + hr = IDirectSoundCaptureBuffer_Stop(dscb);
478 + if (FAILED(hr)) {
479 + dsound_logerr(hr, "Could not stop capturing");
480 return;
481 }
482 } else {
509 - dolog ("warning: Voice is not capturing\n");
483 + warn_report("dsound: Voice is not capturing");
484 }
485 }
486 }
@@ -523,7 +497,7 @@ static void *dsound_get_buffer_in(HWVoiceIn *hw, size_t *size)
497
498 hr = IDirectSoundCaptureBuffer_GetCurrentPosition(dscb, NULL, &rpos);
499 if (FAILED(hr)) {
526 - dsound_logerr(hr, "Could not get capture buffer position\n");
500 + dsound_logerr(hr, "Could not get capture buffer position");
501 *size = 0;
502 return NULL;
503 }
@@ -544,7 +518,7 @@ static void *dsound_get_buffer_in(HWVoiceIn *hw, size_t *size)
518 err = dsound_lock_in(dscb, &hw->info, hw->pos_emul, req_size, &ret, NULL,
519 &act_size, NULL, false, AUDIO_DSOUND(hw->s));
520 if (err) {
547 - dolog("Failed to lock buffer\n");
521 + error_report("dsound: Failed to lock buffer");
522 *size = 0;
523 return NULL;
524 }
@@ -560,7 +534,7 @@ static void dsound_put_buffer_in(HWVoiceIn *hw, void *buf, size_t len)
534 int err = dsound_unlock_in(dscb, buf, NULL, len, 0);
535
536 if (err) {
563 - dolog("Failed to unlock buffer!!\n");
537 + error_report("dsound: Failed to unlock buffer");
538 return;
539 }
540 hw->pos_emul = (hw->pos_emul + len) % hw->size_emul;
@@ -577,7 +551,7 @@ static void audio_dsound_finalize(Object *obj)
551
552 hr = IDirectSound_Release (s->dsound);
553 if (FAILED (hr)) {
580 - dsound_logerr (hr, "Could not release DirectSound\n");
554 + dsound_logerr(hr, "Could not release DirectSound");
555 }
556 s->dsound = NULL;
557
@@ -587,7 +561,7 @@ static void audio_dsound_finalize(Object *obj)
561
562 hr = IDirectSoundCapture_Release (s->dsound_capture);
563 if (FAILED (hr)) {
590 - dsound_logerr (hr, "Could not release DirectSoundCapture\n");
564 + dsound_logerr(hr, "Could not release DirectSoundCapture");
565 }
566 s->dsound_capture = NULL;
567 }
audio/trace-events
+5
@@ -23,6 +23,11 @@ dbus_audio_register(const char *s, const char *dir) "sender = %s, dir = %s"
23 dbus_audio_put_buffer_out(size_t pos, size_t size) "buf_pos = %zu, buf_size = %zu"
24 dbus_audio_read(size_t len) "len = %zu"
25
26 +# dsoundaudio.c
27 +dsound_clear_sample(void *p1, uint32_t blen1, uint32_t len1, void *p2, uint32_t blen2, uint32_t len2) "p1=%p, blen1=%u, len1=%u, p2=%p, blen2=%u, len2=%u"
28 +dsound_wave_format(uint16_t wFormatTag, uint16_t nChannels, uint32_t nSamplesPerSec, uint32_t nAvgBytesPerSec, uint16_t nBlockAlign, uint16_t wBitsPerSample, uint16_t cbSize) "wFormatTag=%u, nChannels=%u, nSamplesPerSec=%u, nAvgBytesPerSec=%u, nBlockAlign=%u, wBitsPerSample=%u, cbSize=%u"
29 +dsound_buffer_bytes(uint32_t caps_bytes, uint32_t desc_bytes) "caps_bytes=%u, desc_bytes=%u"
30 +
31 # pwaudio.c
32 pw_state_changed(int nodeid, const char *s) "node id: %d stream state: %s"
33 pw_read(int32_t avail, uint32_t index, size_t len) "avail=%d index=%u len=%zu"