mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
audioconvert: improve debug output
Print channelmix matrix when there is something to print. Avoids skipping zero matrix lines in some cases.
This commit is contained in:
parent
846dbce7f1
commit
9c2b2a64f0
1 changed files with 4 additions and 4 deletions
|
|
@ -520,7 +520,7 @@ done:
|
||||||
if (ic >= dst_chan || jc >= src_chan)
|
if (ic >= dst_chan || jc >= src_chan)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (i == 0)
|
if (ic == 0)
|
||||||
idx2 += snprintf(str2 + idx2, sizeof(str2) - idx2, "%-4.4s ",
|
idx2 += snprintf(str2 + idx2, sizeof(str2) - idx2, "%-4.4s ",
|
||||||
src_mask == ~0LU ? "MONO" :
|
src_mask == ~0LU ? "MONO" :
|
||||||
spa_debug_type_find_short_name(spa_type_audio_channel, j + 3));
|
spa_debug_type_find_short_name(spa_type_audio_channel, j + 3));
|
||||||
|
|
@ -533,9 +533,9 @@ done:
|
||||||
else
|
else
|
||||||
idx += snprintf(str + idx, sizeof(str) - idx, "%1.3f ", matrix[i][j]);
|
idx += snprintf(str + idx, sizeof(str) - idx, "%1.3f ", matrix[i][j]);
|
||||||
}
|
}
|
||||||
if (dst_mask != 0 && src_mask != 0 && sum > 0.0f) {
|
if (idx2 > 0)
|
||||||
if (i == 0)
|
spa_log_info(mix->log, " %s", str2);
|
||||||
spa_log_info(mix->log, " %s", str2);
|
if (idx > 0) {
|
||||||
spa_log_info(mix->log, "%-4.4s %s %f",
|
spa_log_info(mix->log, "%-4.4s %s %f",
|
||||||
dst_mask == ~0LU ? "MONO" :
|
dst_mask == ~0LU ? "MONO" :
|
||||||
spa_debug_type_find_short_name(spa_type_audio_channel, i + 3),
|
spa_debug_type_find_short_name(spa_type_audio_channel, i + 3),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue