Trait ggez::audio::AudioContext [−][src]
pub trait AudioContext {
fn device(&self) -> &OutputStreamHandle;
}
Expand description
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) -> &OutputStreamHandle
fn device(&self) -> &OutputStreamHandle
Returns the audio device.