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