ao_pipewire: tell audio server about number of queued samples

This commit is contained in:
Thomas Weißschuh
2022-08-09 09:24:55 -07:00
committed by Philip Langdale
parent 2c46ae8ea3
commit c9ecaedc44
+2 -1
View File
@@ -149,7 +149,8 @@ static void on_process(void *userdata)
end_time += (nframes * 1e6 / ao->samplerate) +
((float) time.delay * SPA_USEC_PER_SEC * time.rate.num / time.rate.denom);
ao_read_data(ao, data, nframes, end_time);
int samples = ao_read_data(ao, data, nframes, end_time);
b->size = samples;
pw_stream_queue_buffer(p->stream, b);
}