pub struct BstreamConfig { /* private fields */ }Expand description
Initial configuration for constructing Bstreams
Implementations§
Source§impl BstreamConfig
impl BstreamConfig
Sourcepub fn with_position(self, p: [f32; 3]) -> Self
pub fn with_position(self, p: [f32; 3]) -> Self
Set initial position relative to listener.
Sourcepub fn with_velocity(self, v: [f32; 3]) -> Self
pub fn with_velocity(self, v: [f32; 3]) -> Self
Set initial velocity.
Sourcepub fn with_doppler_factor(self, d: f32) -> Self
pub fn with_doppler_factor(self, d: f32) -> Self
Set doppler factor for this stream.
Sourcepub fn with_speed_of_sound(self, s: f32) -> Self
pub fn with_speed_of_sound(self, s: f32) -> Self
Set speed of sound for this stream.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BstreamConfig
impl RefUnwindSafe for BstreamConfig
impl Send for BstreamConfig
impl Sync for BstreamConfig
impl Unpin for BstreamConfig
impl UnwindSafe for BstreamConfig
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