pub struct AudioState { /* private fields */ }Expand description
What the engine’s nadir::sound keeps of the game’s sound from frame
to frame: a resource of every App, for the game to
read.
Implementations§
Source§impl AudioState
impl AudioState
Sourcepub fn music_area(&self) -> Option<Entity>
pub fn music_area(&self) -> Option<Entity>
The entity of the MusicArea whose track was sent last. None
before the first is, and from when the listener is in no area, or
the area’s entity is despawned or loses its MusicArea, until the
next is.
Trait Implementations§
Auto Trait Implementations§
impl Forget for AudioState
impl Freeze for AudioState
impl Move for AudioState
impl RefUnwindSafe for AudioState
impl Send for AudioState
impl Sync for AudioState
impl Unpin for AudioState
impl UnsafeUnpin for AudioState
impl UnwindSafe for AudioState
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