Struct impose::Audio
[−]
[src]
pub struct Audio { /* fields omitted */ }
Struct representing the Audio system
Methods
impl Audio
[src]
fn new() -> Audio
[src]
Creates a new instance of the Audio system
fn add_audio(&mut self, name: &'static str, path: &'static str)
[src]
Adds a piece of audio to the system
fn add_packed_audio(&mut self, name: &'static str, bytes: Vec<u8>)
[src]
Add audio that is packed into the binary
fn play(&mut self, name: &'static str)
[src]
Plays an piece of Audio that has been loaded into the system
fn repeat(&mut self, name: &'static str)
[src]
Loops a piece of Audio that has been loaded into the system