[][src]Trait ggez::audio::AudioContext

pub trait AudioContext {
    fn device(&self) -> &Device;
}

A trait object defining an audio context, allowing us to someday use something other than rodio if we really want.

End-users usually don't need to mess with this, but it's there if you want to bypass ggez's sound functionality and write your own.

Required methods

fn device(&self) -> &Device

Returns the audio device.

Loading content...

Implementors

Loading content...