- ALSA backend: reuse the buffers - Make `InputBuffer` and `OutputBuffer` types just a wrapper of slice * Buffer is now submitted at the end of callback
21 lines
477 B
Rust
21 lines
477 B
Rust
extern crate winapi;
|
|
|
|
use std::io::Error as IoError;
|
|
|
|
pub use self::device::{Device, Devices, SupportedInputFormats, SupportedOutputFormats, default_input_device, default_output_device};
|
|
pub use self::stream::{EventLoop, StreamId};
|
|
use self::winapi::um::winnt::HRESULT;
|
|
|
|
mod com;
|
|
mod device;
|
|
mod stream;
|
|
|
|
#[inline]
|
|
fn check_result(result: HRESULT) -> Result<(), IoError> {
|
|
if result < 0 {
|
|
Err(IoError::from_raw_os_error(result))
|
|
} else {
|
|
Ok(())
|
|
}
|
|
}
|