minor fixes
This commit is contained in:
parent
c978583863
commit
fe4d108477
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "asio-sys"
|
name = "asio-sys"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Tom Gowan <s3549186@student.rmit.edu.au>"]
|
authors = ["Tom Gowan <tomrgowan@gmail.com>"]
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[target.'cfg(any(target_os = "windows"))'.build-dependencies]
|
[target.'cfg(any(target_os = "windows"))'.build-dependencies]
|
||||||
|
|
|
@ -24,7 +24,7 @@ pub struct EventLoop {
|
||||||
pub struct StreamId(usize);
|
pub struct StreamId(usize);
|
||||||
|
|
||||||
pub struct InputBuffer<'a, T: 'a> {
|
pub struct InputBuffer<'a, T: 'a> {
|
||||||
buffer: &'a mut [T],
|
buffer: &'a [T],
|
||||||
}
|
}
|
||||||
pub struct OutputBuffer<'a, T: 'a> {
|
pub struct OutputBuffer<'a, T: 'a> {
|
||||||
buffer: &'a mut [T],
|
buffer: &'a mut [T],
|
||||||
|
@ -142,7 +142,7 @@ impl EventLoop {
|
||||||
sys::AsioSampleType::ASIOSTFloat32LSB => {
|
sys::AsioSampleType::ASIOSTFloat32LSB => {
|
||||||
try_callback!(F32, f32, f32, f32, f32);
|
try_callback!(F32, f32, f32, f32, f32);
|
||||||
}
|
}
|
||||||
sys::AsioSampleType::ASIOSTFloat32LSB => {
|
sys::AsioSampleType::ASIOSTFloat64LSB => {
|
||||||
try_callback!(F32, f32, f32, f64, f64);
|
try_callback!(F32, f32, f32, f64, f64);
|
||||||
}
|
}
|
||||||
_ => println!("unsupported format {:?}", stream_type),
|
_ => println!("unsupported format {:?}", stream_type),
|
||||||
|
|
Loading…
Reference in New Issue