sysaudio: add missing bool param to soundio call (#492)

This commit is contained in:
NewbLuck 2022-08-30 00:46:25 -06:00 committed by GitHub
parent d9bd4d7d79
commit 5dfd677a37
Failed to generate hash of commit
3 changed files with 7 additions and 6 deletions

View file

@ -112,8 +112,8 @@ pub const Device = struct {
pub fn pause(device: *Device) Error!void {
return (switch (device.handle) {
.input => |d| d.pause(),
.output => |d| d.pause(),
.input => |d| d.pause(true),
.output => |d| d.pause(true),
}) catch |err| {
return switch (err) {
error.OutOfMemory => error.OutOfMemory,
@ -123,6 +123,7 @@ pub const Device = struct {
}
pub fn start(device: *Device) Error!void {
// TODO(sysaudio): after pause, may need to call d.pause(false) instead of d.start()?
return (switch (device.handle) {
.input => |d| d.start(),
.output => |d| d.start(),