Remove StreamEvent in favour of StreamDataResult
This commit is contained in:
parent
26f7e99e9b
commit
c05d2916b1
9 changed files with 47 additions and 98 deletions
|
|
@ -9,8 +9,8 @@ use DeviceNameError;
|
|||
use Format;
|
||||
use PauseStreamError;
|
||||
use PlayStreamError;
|
||||
use StreamDataResult;
|
||||
use SupportedFormatsError;
|
||||
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, StreamEvent)
|
||||
where F: FnMut(StreamId, StreamDataResult)
|
||||
{
|
||||
loop { /* TODO: don't spin */ }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue