pub struct ExactSamplesPlayer<T: Sample> { /* private fields */ }Expand description
Manages the applying of modifiers and the sending of samples to audio streams, DOES NOT transform the original sample into IntermediateSampleType which is much slower. Go see SamplesPlayer for a more efficient samples player.
Implementations§
Source§impl<T: Sample> ExactSamplesPlayer<T>where
IntermediateSampleType: FromSample<T>,
impl<T: Sample> ExactSamplesPlayer<T>where
IntermediateSampleType: FromSample<T>,
Sourcepub fn new(samples: Samples<T>) -> ExactSamplesPlayer<T>
pub fn new(samples: Samples<T>) -> ExactSamplesPlayer<T>
Creates a new SamplePlayer directly from Samples<T>
Trait Implementations§
Source§impl<T: Sample> SamplesPlayerTrait for ExactSamplesPlayer<T>where
IntermediateSampleType: FromSample<T>,
impl<T: Sample> SamplesPlayerTrait for ExactSamplesPlayer<T>where
IntermediateSampleType: FromSample<T>,
Source§fn metadata(&self) -> Box<dyn AudioMetadataTrait>
fn metadata(&self) -> Box<dyn AudioMetadataTrait>
Returns the metadata of the samples
Source§fn add_modifier(&mut self, modifier: Box<dyn ModifierTrait>)
fn add_modifier(&mut self, modifier: Box<dyn ModifierTrait>)
Adds a modifier
Source§fn clear_modifiers(&mut self)
fn clear_modifiers(&mut self)
Clears all modifiers and their effects
Auto Trait Implementations§
impl<T> Freeze for ExactSamplesPlayer<T>
impl<T> !RefUnwindSafe for ExactSamplesPlayer<T>
impl<T> !Send for ExactSamplesPlayer<T>
impl<T> !Sync for ExactSamplesPlayer<T>
impl<T> Unpin for ExactSamplesPlayer<T>where
T: Unpin,
impl<T> !UnwindSafe for ExactSamplesPlayer<T>
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