sysaudio: soundio: add pause wrapper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
1dc3a4cba8
commit
052be9a684
2 changed files with 8 additions and 0 deletions
|
|
@ -25,6 +25,10 @@ pub fn start(self: InStream) Error!void {
|
||||||
try intToError(c.soundio_instream_start(self.handle));
|
try intToError(c.soundio_instream_start(self.handle));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn pause(self: InStream) Error!void {
|
||||||
|
try intToError(c.soundio_instream_pause(self.handle));
|
||||||
|
}
|
||||||
|
|
||||||
pub fn beginWrite(self: InStream, areas: [*]?[*]c.SoundIoChannelArea, frame_count: *i32) Error!void {
|
pub fn beginWrite(self: InStream, areas: [*]?[*]c.SoundIoChannelArea, frame_count: *i32) Error!void {
|
||||||
try intToError(c.soundio_instream_begin_write(
|
try intToError(c.soundio_instream_begin_write(
|
||||||
self.handle,
|
self.handle,
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,10 @@ pub fn start(self: OutStream) Error!void {
|
||||||
try intToError(c.soundio_outstream_start(self.handle));
|
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 {
|
pub fn beginWrite(self: OutStream, areas: [*]?[*]c.SoundIoChannelArea, frame_count: *i32) Error!void {
|
||||||
try intToError(c.soundio_outstream_begin_write(
|
try intToError(c.soundio_outstream_begin_write(
|
||||||
self.handle,
|
self.handle,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue