Struct oddio::SpatialSceneControl [−][src]
Control for modifying a SpatialScene
Implementations
impl<'a> SpatialSceneControl<'a>
[src]
pub fn play<S>(
&mut self,
signal: S,
position: Point3<f32>,
velocity: Vector3<f32>,
max_distance: f32
) -> Handle<Spatial<Stop<S>>> where
S: Signal<Frame = Sample> + Send + 'static,
[src]
&mut self,
signal: S,
position: Point3<f32>,
velocity: Vector3<f32>,
max_distance: f32
) -> Handle<Spatial<Stop<S>>> where
S: Signal<Frame = Sample> + Send + 'static,
Begin playing signal
at position
, moving at velocity
, with accurate propagation delay
out to max_distance
Coordinates should be in world space, translated such that the listener is at the origin, but not rotated, with velocity relative to the listener. Units are meters and meters per second.
Returns a Handle
that can be used to adjust the signal's movement in the future, pause
or stop it, and access other controls.
pub fn set_listener_rotation(&mut self, rotation: Quaternion<f32>)
[src]
Set the listener's rotation
An unrotated listener faces -Z, with +X to the right and +Y up.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for SpatialSceneControl<'a>
[src]
impl<'a> !Send for SpatialSceneControl<'a>
[src]
impl<'a> !Sync for SpatialSceneControl<'a>
[src]
impl<'a> Unpin for SpatialSceneControl<'a>
[src]
impl<'a> !UnwindSafe for SpatialSceneControl<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,