pub struct NullAudioEngine;Expand description
No-op audio engine used when no audio backend is available.
Trait Implementations§
Source§impl AudioEngine for NullAudioEngine
impl AudioEngine for NullAudioEngine
Source§fn play_sound(&self, _name: &str, _volume: f32)
fn play_sound(&self, _name: &str, _volume: f32)
Play a named sound at the given volume (0.0 to 1.0).
Source§fn play_spatial(&self, _name: &str, _position: [f32; 3], _volume: f32)
fn play_spatial(&self, _name: &str, _position: [f32; 3], _volume: f32)
Play a spatial sound at a 3D position relative to the listener.
Source§fn set_listener_position(&self, _position: [f32; 3])
fn set_listener_position(&self, _position: [f32; 3])
Set the listener’s position in 3D space for spatial audio.
Auto Trait Implementations§
impl Freeze for NullAudioEngine
impl RefUnwindSafe for NullAudioEngine
impl Send for NullAudioEngine
impl Sync for NullAudioEngine
impl Unpin for NullAudioEngine
impl UnsafeUnpin for NullAudioEngine
impl UnwindSafe for NullAudioEngine
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.