Struct ggez::audio::AudioContext
source · pub struct AudioContext { /* private fields */ }
Expand description
A struct that contains all information for tracking sound info.
You generally don’t have to create this yourself, it will be part
of your Context
object.
Implementations§
source§impl AudioContext
impl AudioContext
sourcepub fn new(fs: &Filesystem) -> GameResult<Self>
pub fn new(fs: &Filesystem) -> GameResult<Self>
Create new AudioContext
.
source§impl AudioContext
impl AudioContext
sourcepub fn device(&self) -> &OutputStreamHandle
pub fn device(&self) -> &OutputStreamHandle
Returns the audio device.
Trait Implementations§
source§impl Debug for AudioContext
impl Debug for AudioContext
source§impl Has<AudioContext> for Context
impl Has<AudioContext> for Context
source§fn retrieve(&self) -> &AudioContext
fn retrieve(&self) -> &AudioContext
Method to retrieve the context type.
Auto Trait Implementations§
impl !RefUnwindSafe for AudioContext
impl !Send for AudioContext
impl !Sync for AudioContext
impl Unpin for AudioContext
impl !UnwindSafe for AudioContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
source§impl<T> HasMut<T> for T
impl<T> HasMut<T> for T
source§fn retrieve_mut(&mut self) -> &mut T
fn retrieve_mut(&mut self) -> &mut T
Method to retrieve the context type as mutable.