From 0bf75cd3b1654f1caf495503de371cf43296853d Mon Sep 17 00:00:00 2001 From: Martin Piatka Date: Thu, 29 Jun 2023 14:55:58 +0200 Subject: [PATCH] acap/pipewire: print format as str on_param_changed() --- src/audio/capture/pipewire.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/audio/capture/pipewire.cpp b/src/audio/capture/pipewire.cpp index 45bf084f2..178ef6d0f 100644 --- a/src/audio/capture/pipewire.cpp +++ b/src/audio/capture/pipewire.cpp @@ -117,11 +117,10 @@ static void on_param_changed(void *state, uint32_t id, const struct spa_pod *par spa_format_audio_raw_parse(param, &audio_params.info.raw); - log_msg(LOG_LEVEL_NOTICE, "Format change: %u %u %u\n", - audio_params.info.raw.format, - audio_params.info.raw.rate, - audio_params.info.raw.channels); - + log_msg(LOG_LEVEL_NOTICE, MOD_NAME "Pipewire format change: %s, %u ch, %uHz\n", + spa_debug_type_find_short_name(spa_type_audio_format, audio_params.info.raw.format), + audio_params.info.raw.channels, + audio_params.info.raw.rate); /* It is not expected that params change while the stream is active, * therefore this should run only during during init (we wait for stream to