Trait MaudioNormalMeterProtocol

Source
pub trait MaudioNormalMeterProtocol {
    const PHYS_INPUT_COUNT: usize;
    const STREAM_INPUT_COUNT: usize;
    const PHYS_OUTPUT_COUNT: usize;
    const ROTARY_COUNT: usize;
    const HAS_SWITCH: bool;
    const HAS_SYNC_STATUS: bool;
    const LEVEL_MIN: i32 = 0i32;
    const LEVEL_MAX: i32 = 2_147_483_647i32;
    const LEVEL_STEP: i32 = 256i32;
    const ROTARY_MIN: i32 = 0i32;
    const ROTARY_MAX: i32 = 32_767i32;
    const ROTARY_STEP: i32 = 512i32;

    // Provided methods
    fn create_meter() -> MaudioNormalMeter { ... }
    fn calculate_meter_frame_size() -> usize { ... }
    fn read_meter(
        req: &FwReq,
        node: &FwNode,
        meter: &mut MaudioNormalMeter,
        timeout_ms: u32,
    ) -> Result<(), Error> { ... }
}
Expand description

The trait for meter protocol specific to M-Audio FireWire series.

Required Associated Constants§

Provided Associated Constants§

Source

const LEVEL_MIN: i32 = 0i32

Source

const LEVEL_MAX: i32 = 2_147_483_647i32

Source

const LEVEL_STEP: i32 = 256i32

Source

const ROTARY_MIN: i32 = 0i32

Source

const ROTARY_MAX: i32 = 32_767i32

Source

const ROTARY_STEP: i32 = 512i32

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§