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

@ -679,10 +679,6 @@ impl EventLoop {
) => {
let mut my_buffers = $Buffers;
{
// Wrap the cpal buffer
let buff = OutputBuffer {
buffer: &mut my_buffers.cpal,
};
// call the callback to fill the buffer with
// users data
callback(
@ -894,6 +890,7 @@ impl EventLoop {
}
// Calling play when already playing is a no-op
sys::play();
Ok(())
}
/// Pause the cpal stream for the given ID.
@ -912,6 +909,7 @@ impl EventLoop {
if any_playing {
sys::stop();
}
Ok(())
}
/// Destroy the cpal stream based on the ID.