mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-13 13:30:05 -05:00
stream: add resample size to pw_time
Now that the resampler input size is set in the io_rate field when we start we can add it to the pw_time struct as well. This way we can know the required resampler input without having to dequeue a buffer. This can be handy when the stream is a driver and needs to know how much data to accumulate before starting the graph. See #3750
This commit is contained in:
parent
63e283f377
commit
1bbaf270f8
3 changed files with 24 additions and 19 deletions
|
|
@ -932,11 +932,11 @@ static void do_print_delay(void *userdata, uint64_t expirations)
|
|||
pw_stream_get_time_n(data->stream, &time, sizeof(time));
|
||||
printf("stream time: now:%"PRIi64" rate:%u/%u ticks:%"PRIu64
|
||||
" delay:%"PRIi64" queued:%"PRIu64
|
||||
" buffered:%"PRIi64" buffers:%u avail:%u\n",
|
||||
" buffered:%"PRIi64" buffers:%u avail:%u req:%"PRIu64"\n",
|
||||
time.now,
|
||||
time.rate.num, time.rate.denom,
|
||||
time.ticks, time.delay, time.queued, time.buffered,
|
||||
time.queued_buffers, time.avail_buffers);
|
||||
time.queued_buffers, time.avail_buffers, time.requested);
|
||||
}
|
||||
|
||||
enum {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue