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.
This commit is contained in:
Thomas Weißschuh 2022-11-25 15:48:49 +01:00 committed by sfan5
parent 37869fbcd7
commit 495206dd41
1 changed files with 2 additions and 0 deletions

View File

@ -183,6 +183,8 @@ static void on_process(void *userdata)
} }
pw_stream_queue_buffer(p->stream, b); 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) static void on_param_changed(void *userdata, uint32_t id, const struct spa_pod *param)