Fix remaining compile errors for ASIO host

Now runs the beep and enumerate examples nicely! Time to do a proper
code review of the ASIO stuff and see how to best take advantage of the
new `Host` API.
This commit is contained in:
mitchmindtree 2019-06-27 21:49:27 +10:00
parent 747caeee38
commit 05f8b7dc43
4 changed files with 14 additions and 8 deletions

View file

@ -269,6 +269,7 @@ macro_rules! impl_platform_host {
.map(StreamId)
}
)*
_ => panic!("tried to build a stream with a device from another host"),
}
}
@ -285,6 +286,7 @@ macro_rules! impl_platform_host {
.map(StreamId)
}
)*
_ => panic!("tried to build a stream with a device from another host"),
}
}
@ -295,6 +297,7 @@ macro_rules! impl_platform_host {
e.play_stream(s.clone())
}
)*
_ => panic!("tried to play a stream with an ID associated with another host"),
}
}
@ -305,6 +308,7 @@ macro_rules! impl_platform_host {
e.pause_stream(s.clone())
}
)*
_ => panic!("tried to pause a stream with an ID associated with another host"),
}
}
@ -315,6 +319,7 @@ macro_rules! impl_platform_host {
e.destroy_stream(s.clone())
}
)*
_ => panic!("tried to destroy a stream with an ID associated with another host"),
}
}