Change callback interface so that it takes a dedicated error callback
This commit is contained in:
parent
c97d1dd3fa
commit
3cce3e43d9
8 changed files with 50 additions and 71 deletions
|
|
@ -206,10 +206,6 @@ pub enum StreamData<'a> {
|
|||
},
|
||||
}
|
||||
|
||||
/// Stream data passed to the `EventLoop::run` callback, or an error in the case that the device
|
||||
/// was invalidated or some backend-specific error occurred.
|
||||
pub type StreamDataResult<'a> = Result<StreamData<'a>, StreamError>;
|
||||
|
||||
/// Represents a buffer containing audio data that may be read.
|
||||
///
|
||||
/// This struct implements the `Deref` trait targeting `[T]`. Therefore this buffer can be read the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue