audio: increase soundio binding coverage for running sine-wine example
This commit is contained in:
parent
d3b7df882e
commit
0e3461e25f
6 changed files with 114 additions and 6 deletions
11
audio/soundio/ChannelLayout.zig
Normal file
11
audio/soundio/ChannelLayout.zig
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue