pub enum SoundSourceType {
Simple,
Positional,
}Expand description
Type of SoundSource
Source can be positional(sound is changing when source/listener position/orientation changed) or simple(doesn’t have position, can be used, for example, to play music)
Variants§
Simple
When SoundSourceType is Simple, you won’t be able to set source position. Listener position and orientation won’t affect sound
Positional
When SoundSourceType is Positional, position of source could be set. Position and orientation of listener would affect source sound.
Trait Implementations§
Source§impl Clone for SoundSourceType
impl Clone for SoundSourceType
Source§fn clone(&self) -> SoundSourceType
fn clone(&self) -> SoundSourceType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SoundSourceType
impl Debug for SoundSourceType
impl Copy for SoundSourceType
Auto Trait Implementations§
impl Freeze for SoundSourceType
impl RefUnwindSafe for SoundSourceType
impl Send for SoundSourceType
impl Sync for SoundSourceType
impl Unpin for SoundSourceType
impl UnwindSafe for SoundSourceType
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