pub enum AudioOp {
Queue {
channel: usize,
pcm: Pcm,
fade_in: usize,
fade_out: usize,
crossfade: bool,
looped: bool,
volume: (f32, f32),
},
Flush {
channel: usize,
fade_out: usize,
},
Volume {
channel: usize,
left: Option<f32>,
right: Option<f32>,
ramp: usize,
},
}Expand description
What the front end’s mixer is to do.
Variants§
Queue
Play pcm on channel after what is queued there (or, with
crossfade, fade out what is playing while this fades in over
fade_in frames). volume is in dB, added to the channel’s.
Fields
Flush
Stop a channel: at once, or fading out over fade_out frames.
Volume
Set a channel’s level (dB) now, or over ramp frames.
Trait Implementations§
impl StructuralPartialEq for AudioOp
Auto Trait Implementations§
impl Freeze for AudioOp
impl RefUnwindSafe for AudioOp
impl Send for AudioOp
impl Sync for AudioOp
impl Unpin for AudioOp
impl UnsafeUnpin for AudioOp
impl UnwindSafe for AudioOp
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