pub struct NodeLevels {
pub node: Option<AudioNodeRef>,
pub start_sample: i64,
pub frames: usize,
pub peak: [f32; 2],
pub rms: [f32; 2],
}Expand description
The level of one track, one bus or the master output over one block. Serializes with camel case keys.
Fields§
§node: Option<AudioNodeRef>The track or bus; None is the master output, after the limiter.
start_sample: i64The timeline sample of the first sample measured. A track or bus is measured where it is mixed, which is ahead of the block by the latency of what follows it.
frames: usizeHow many samples were measured.
peak: [f32; 2]The largest sample magnitude of each channel, after the fader and pan. The second is 0 in a mono render.
rms: [f32; 2]The root mean square of each channel, after the fader and pan. The squares are added in a fixed order (sixteen interleaved partial sums, then those in adjacent pairs), so the value is the same on every platform.
Trait Implementations§
Source§impl Clone for NodeLevels
impl Clone for NodeLevels
Source§impl Debug for NodeLevels
impl Debug for NodeLevels
Source§impl PartialEq for NodeLevels
impl PartialEq for NodeLevels
Source§impl Serialize for NodeLevels
impl Serialize for NodeLevels
impl StructuralPartialEq for NodeLevels
Auto Trait Implementations§
impl Forget for NodeLevels
impl Freeze for NodeLevels
impl Move for NodeLevels
impl RefUnwindSafe for NodeLevels
impl Send for NodeLevelswhere
RawVecInner: Send,
impl Sync for NodeLevelswhere
RawVecInner: Sync,
impl Unpin for NodeLevels
impl UnsafeUnpin for NodeLevels
impl UnwindSafe for NodeLevelswhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more