[][src]Struct bs1770::Windows100ms

pub struct Windows100ms<T> {
    pub inner: T,
}

A T value for non-overlapping windows of audio, 100ms in length.

The ChannelLoudnessMeter applies K-weighting and then produces the power for non-overlapping windows of 100ms duration.

These non-overlapping 100ms windows can later be combined into overlapping windows of 400ms, spaced 100ms apart, to compute instantaneous loudness or to perform a gated measurement, or they can be combined into even larger windows for a momentary loudness measurement.

Fields

inner: T

Implementations

impl<T> Windows100ms<T>[src]

pub fn new() -> Windows100ms<Vec<T>>[src]

Wrap a new empty vector.

pub fn as_ref(&self) -> Windows100ms<&[Power]> where
    T: AsRef<[Power]>, 
[src]

Apply as_ref to the inner value.

pub fn as_mut(&mut self) -> Windows100ms<&mut [Power]> where
    T: AsMut<[Power]>, 
[src]

Apply as_mut to the inner value.

pub fn len(&self) -> usize where
    T: AsRef<[Power]>, 
[src]

Apply len to the inner value.

Trait Implementations

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

impl<T: Copy> Copy for Windows100ms<T>[src]

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

Auto Trait Implementations

impl<T> RefUnwindSafe for Windows100ms<T> where
    T: RefUnwindSafe

impl<T> Send for Windows100ms<T> where
    T: Send

impl<T> Sync for Windows100ms<T> where
    T: Sync

impl<T> Unpin for Windows100ms<T> where
    T: Unpin

impl<T> UnwindSafe for Windows100ms<T> where
    T: UnwindSafe

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.