sysaudio: fix bit cast in pipewire backend
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
98e580b030
commit
2327059f45
1 changed files with 1 additions and 1 deletions
|
|
@ -313,7 +313,7 @@ pub const Player = struct {
|
|||
const stride = self.format.frameSize(self.channels.len);
|
||||
const n_frames = @min(buf.*.requested, buf.*.buffer.*.datas[0].maxsize / stride);
|
||||
buf.*.buffer.*.datas[0].chunk.*.stride = stride;
|
||||
buf.*.buffer.*.datas[0].chunk.*.size = n_frames * stride;
|
||||
buf.*.buffer.*.datas[0].chunk.*.size = @intCast(u32, n_frames * stride);
|
||||
|
||||
for (self.channels, 0..) |*ch, i| {
|
||||
ch.ptr = @ptrCast([*]u8, buf.*.buffer.*.datas[0].data.?) + self.format.frameSize(i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue