Struct oddio::FramesSignal[][src]

pub struct FramesSignal<T> { /* fields omitted */ }

An audio signal backed by a static sequence of samples

Implementations

impl<T> FramesSignal<T>[src]

pub fn new(data: Arc<Frames<T>>, start_seconds: f64) -> Self[src]

Create an audio signal from some samples

start_seconds adjusts the initial playback position, and may be negative.

Trait Implementations

impl<T: Clone> Clone for FramesSignal<T>[src]

impl<T: Debug> Debug for FramesSignal<T>[src]

impl<T> From<Arc<Frames<T>>> for FramesSignal<T>[src]

impl<T: Frame + Copy> Signal for FramesSignal<T>[src]

type Frame = T

Type of frames yielded by sample, e.g. [Sample; 2] for stereo

Auto Trait Implementations

impl<T> !RefUnwindSafe for FramesSignal<T>[src]

impl<T> Send for FramesSignal<T> where
    T: Send + Sync
[src]

impl<T> !Sync for FramesSignal<T>[src]

impl<T> Unpin for FramesSignal<T>[src]

impl<T> UnwindSafe for FramesSignal<T> where
    T: RefUnwindSafe
[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.