Update the null and emscripten backends for StreamEvent API

This commit is contained in:
mitchmindtree 2019-06-22 03:53:51 +02:00
parent 3e3cf26cde
commit fddea2edd8
2 changed files with 7 additions and 5 deletions

View file

@ -10,7 +10,7 @@ use Format;
use PauseStreamError;
use PlayStreamError;
use SupportedFormatsError;
use StreamData;
use StreamEvent;
use SupportedFormat;
pub struct EventLoop;
@ -23,7 +23,7 @@ impl EventLoop {
#[inline]
pub fn run<F>(&self, _callback: F) -> !
where F: FnMut(StreamId, StreamData)
where F: FnMut(StreamId, StreamEvent)
{
loop { /* TODO: don't spin */ }
}