ao_pipewire: tell audio server about number of queued samples

This commit is contained in:
Thomas Weißschuh 2022-08-08 05:19:40 +02:00 committed by Philip Langdale
parent 2c46ae8ea3
commit c9ecaedc44
1 changed files with 2 additions and 1 deletions

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);
}