From 4fd72eaee0a7a670ac48efb0273b86bfd42c2365 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 18 Sep 2018 17:23:05 +0200 Subject: [PATCH] channelmix: debug matrix --- spa/plugins/audioconvert/channelmix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spa/plugins/audioconvert/channelmix.c b/spa/plugins/audioconvert/channelmix.c index 538af0904..cf287eca2 100644 --- a/spa/plugins/audioconvert/channelmix.c +++ b/spa/plugins/audioconvert/channelmix.c @@ -340,6 +340,11 @@ static int make_matrix(struct impl *this, } max = SPA_MAX(max, sum); } + for (i = 0; i < dst_chan; i++) { + for (j = 0; j < src_chan; j++) { + spa_log_debug(this->log, "%d %d: %f", i, j, this->matrix[i * src_chan + j]); + } + } return 0; }