pub struct Generator {
pub sample: Sample,
pub volume: f32,
/* private fields */
}
Expand description
Sound effect generator
Generates sound effect data according to a Sample into a buffer. The data can be generated in
multiple chunks, as the generator maintains its state from one call to generate
to the next.
Fields§
§sample: Sample
Generator settings
volume: f32
Sound effect volume. Default is 0.2
.
Implementations§
Auto Trait Implementations§
impl Freeze for Generator
impl RefUnwindSafe for Generator
impl Send for Generator
impl Sync for Generator
impl Unpin for Generator
impl UnwindSafe for Generator
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