sysaudio: soundio: add pause wrapper

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-28 23:16:22 -07:00 committed by Stephen Gutekanst
parent 1dc3a4cba8
commit 052be9a684
2 changed files with 8 additions and 0 deletions

View file

@ -25,6 +25,10 @@ pub fn start(self: OutStream) Error!void {
try intToError(c.soundio_outstream_start(self.handle));
}
pub fn pause(self: OutStream) Error!void {
try intToError(c.soundio_outstream_pause(self.handle));
}
pub fn beginWrite(self: OutStream, areas: [*]?[*]c.SoundIoChannelArea, frame_count: *i32) Error!void {
try intToError(c.soundio_outstream_begin_write(
self.handle,