From c4b198962ce54f8f14708094d21f6ec6f7082f68 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 4 May 2026 13:51:55 +0200 Subject: [PATCH] jack-tunnel: pass bytes to jack_to_midi When the buffer has n_samples, we have n_samples * sizeof(float) bytes to fill with midi. --- src/modules/module-jack-tunnel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-jack-tunnel.c b/src/modules/module-jack-tunnel.c index bee37da4f..e4a8685ab 100644 --- a/src/modules/module-jack-tunnel.c +++ b/src/modules/module-jack-tunnel.c @@ -406,7 +406,7 @@ static void source_process(void *d, struct spa_io_position *position) src = jack.port_get_buffer (p->jack_port, n_samples); if (SPA_UNLIKELY(p->is_midi)) - jack_to_midi(dst, src, n_samples); + jack_to_midi(dst, src, n_samples * sizeof(float)); else do_volume(dst, src, &s->volume, i, n_samples); }