#[non_exhaustive]pub enum MixerEvent {
Ended(VoiceId),
Stolen(VoiceId),
Rejected(VoiceId),
Limited(VoiceId),
Failed(VoiceId, ErrorCode),
EffectsApplied(BusId, u64),
EffectsRejected(BusId, ErrorCode),
RoutingApplied(RoutingId, u64),
RoutingRejected(RoutingId, ErrorCode),
MusicApplied(MusicId, u64),
MusicRejected(MusicId, ErrorCode),
}Expand description
Something that happened to a voice, reported by MixerHandle::poll_event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Ended(VoiceId)
The voice finished, was stopped, or finished fading out after being stolen.
Stolen(VoiceId)
Another voice took this voice’s place; it fades out, then ends.
Rejected(VoiceId)
The voice did not start because too many voices of higher priority play.
Limited(VoiceId)
The voice did not start because of its Instances limit.
Failed(VoiceId, ErrorCode)
The voice’s stream failed and the voice stopped.
EffectsApplied(BusId, u64)
A bus effect chain was installed at this output frame.
EffectsRejected(BusId, ErrorCode)
An effect edit was refused; the existing chain and settings are unchanged.
RoutingApplied(RoutingId, u64)
A prepared audio graph/settings edit was installed at this output frame.
RoutingRejected(RoutingId, ErrorCode)
A graph conflicted with actual sidechain dependencies; prior state survives.
MusicApplied(MusicId, u64)
A whole music operation took effect at this output frame; a fade may continue.
MusicRejected(MusicId, ErrorCode)
A music operation was refused as a whole; the previous track is unchanged.
Trait Implementations§
Source§impl Clone for MixerEvent
impl Clone for MixerEvent
Source§fn clone(&self) -> MixerEvent
fn clone(&self) -> MixerEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more