diff --git a/asio-sys/Cargo.toml b/asio-sys/Cargo.toml index 7346b61..ae357f4 100644 --- a/asio-sys/Cargo.toml +++ b/asio-sys/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "asio-sys" version = "0.1.0" -authors = ["Tom Gowan "] +authors = ["Tom Gowan "] build = "build.rs" [target.'cfg(any(target_os = "windows"))'.build-dependencies] diff --git a/src/platform/windows/asio/stream.rs b/src/platform/windows/asio/stream.rs index b93953d..82ef064 100644 --- a/src/platform/windows/asio/stream.rs +++ b/src/platform/windows/asio/stream.rs @@ -24,7 +24,7 @@ pub struct EventLoop { pub struct StreamId(usize); pub struct InputBuffer<'a, T: 'a> { - buffer: &'a mut [T], + buffer: &'a [T], } pub struct OutputBuffer<'a, T: 'a> { buffer: &'a mut [T], @@ -142,7 +142,7 @@ impl EventLoop { sys::AsioSampleType::ASIOSTFloat32LSB => { try_callback!(F32, f32, f32, f32, f32); } - sys::AsioSampleType::ASIOSTFloat32LSB => { + sys::AsioSampleType::ASIOSTFloat64LSB => { try_callback!(F32, f32, f32, f64, f64); } _ => println!("unsupported format {:?}", stream_type),