Skip to content

Commit 7138a52

Browse files
committed
aplay/pipewire: Set buffer frame count
This is optional and doesn't do anything by itself, but it's returned by pipwire to the application in the pw_time struct as 'queued'.
1 parent b3b18f9 commit 7138a52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/audio/playback/pipewire.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ static void on_process(void *userdata) noexcept{
130130
buf->datas[0].chunk->stride = frame_size;
131131
buf->datas[0].chunk->size = to_write_total * frame_size;
132132

133+
b->size = to_write_total;
134+
133135
pw_stream_queue_buffer(s->stream.get(), b);
134136
}
135137
}

0 commit comments

Comments
 (0)