audio: increase soundio binding coverage for running sine-wine example

This commit is contained in:
alichraghi 2022-06-30 20:30:50 +04:30 committed by Stephen Gutekanst
parent d3b7df882e
commit 0e3461e25f
6 changed files with 114 additions and 6 deletions

View file

@ -0,0 +1,11 @@
const c = @import("c.zig");
const intToError = @import("error.zig").intToError;
const Error = @import("error.zig").Error;
const ChannelLayout = @This();
handle: c.SoundIoChannelLayout,
pub fn channelCount(self: ChannelLayout) i32 {
return self.handle.channel_count;
}