{sysaudio,examples}: add support for multiple channels
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
587ea05d1e
commit
1dc3a4cba8
3 changed files with 82 additions and 52 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue