Struct ggez::audio::Sound
[−]
[src]
pub struct Sound { /* fields omitted */ }
A source of audio data.
Methods
impl Sound
[src]
fn new<P: AsRef<Path>>(context: &mut Context, path: P) -> GameResult<Sound>
Load a new Sound
fn play(&self) -> GameResult<Channel>
Play a sound on the first available Channel
.
Returns a Channel
, which can be used to manipulate the
playback, eg pause, stop, restart, etc.