#[repr(C)]pub struct MeterFrame {
pub peak_l: f32,
pub peak_r: f32,
pub rms_l: f32,
pub rms_r: f32,
pub timestamp: u64,
}Expand description
Frame of stereo metering data.
Sent from audio thread → UI thread via SPSC ring buffer. All values are linear (not dB) for real-time efficiency.
Fields§
§peak_l: f32Left channel peak (linear, 0.0 to 1.0+)
peak_r: f32Right channel peak (linear, 0.0 to 1.0+)
rms_l: f32Left channel RMS (linear, 0.0 to 1.0+)
rms_r: f32Right channel RMS (linear, 0.0 to 1.0+)
timestamp: u64Sample timestamp (monotonic, for UI interpolation)
Trait Implementations§
Source§impl Clone for MeterFrame
impl Clone for MeterFrame
Source§fn clone(&self) -> MeterFrame
fn clone(&self) -> MeterFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MeterFrame
impl Debug for MeterFrame
Source§impl Default for MeterFrame
impl Default for MeterFrame
Source§fn default() -> MeterFrame
fn default() -> MeterFrame
Returns the “default value” for a type. Read more
impl Copy for MeterFrame
Auto Trait Implementations§
impl Freeze for MeterFrame
impl RefUnwindSafe for MeterFrame
impl Send for MeterFrame
impl Sync for MeterFrame
impl Unpin for MeterFrame
impl UnwindSafe for MeterFrame
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