From 495206dd413f4d0b0572032c3b98c887dbb6f982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Date: Fri, 25 Nov 2022 15:48:49 +0100 Subject: [PATCH] ao_pipewire: log sample queueing This allows us to more easily see the datapath from mpv to pipewire. We know how often the callbacks are triggered, how big the buffers are and how much data mpv provides to pipewire. --- audio/out/ao_pipewire.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/audio/out/ao_pipewire.c b/audio/out/ao_pipewire.c index 420f164ac5..bbdc1de3ca 100644 --- a/audio/out/ao_pipewire.c +++ b/audio/out/ao_pipewire.c @@ -183,6 +183,8 @@ static void on_process(void *userdata) } pw_stream_queue_buffer(p->stream, b); + + MP_TRACE(ao, "queued %d of %d samples\n", samples, nframes); } static void on_param_changed(void *userdata, uint32_t id, const struct spa_pod *param)