{sysaudio,examples}: add support for multiple channels

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-28 23:15:56 -07:00 committed by Stephen Gutekanst
parent 587ea05d1e
commit 1dc3a4cba8
3 changed files with 82 additions and 52 deletions

View file

@ -55,8 +55,8 @@ pub fn waitEvents(self: Audio) void {
self.backend.waitEvents();
}
pub fn requestDevice(self: Audio, config: DeviceDescriptor) Error!Device {
return self.backend.requestDevice(config);
pub fn requestDevice(self: Audio, allocator: std.mem.Allocator, config: DeviceDescriptor) Error!*Device {
return self.backend.requestDevice(allocator, config);
}
pub fn inputDeviceIterator(self: Audio) DeviceIterator {