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