minor fixes

This commit is contained in:
DMSDeveloper 2018-04-25 12:56:58 +10:00 • committed by mitchmindtree
parent c978583863
commit fe4d108477
2 changed files with 3 additions and 3 deletions

View file

@ -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),