Struct Audio
spectra::audio
pub struct Audio { /* fields omitted */ }
The audio object you can use to interact with the soundtrack.
impl Audio
fn len(&self) -> f32
fn cursor(&mut self) -> f32
fn set_cursor(&mut self, t: f32)
fn play(&mut self)
fn pause(&mut self)
fn toggle(&mut self) -> bool
fn from_track_path<P>(track_path: P) -> Self where P: AsRef<Path>,