Struct oddio::SpatialSceneControl[][src]

pub struct SpatialSceneControl<'a>(_);

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.