pub enum Event {
SceneRetired(Arc<Scene>),
VoiceStarted {
tag: u32,
},
VoiceEnded {
tag: u32,
},
Rejected {
tag: u32,
},
}Expand description
What the audio thread tells the control thread.
Variants§
SceneRetired(Arc<Scene>)
A scene the engine no longer uses. Drop it here, off the audio thread.
VoiceStarted
A Command::Press started a voice with this tag.
VoiceEnded
A voice with this tag ended (it ran out, was released and faded, was stopped, or was stolen).
Rejected
A command named a sound the scene does not have, or a gain that is not finite.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more