pub trait MotuCommandDspMixerSpecification {
const SOURCE_PORTS: &'static [TargetPort];
const OUTPUT_PORTS: &'static [TargetPort];
const MIXER_COUNT: usize = 8usize;
const OUTPUT_VOLUME_MIN: f32 = 0f32;
const OUTPUT_VOLUME_MAX: f32 = 1f32;
const SOURCE_GAIN_MIN: f32 = 0f32;
const SOURCE_GAIN_MAX: f32 = 1f32;
const SOURCE_PAN_MIN: f32 = -1f32;
const SOURCE_PAN_MAX: f32 = 1f32;
// Provided method
fn create_mixer_state() -> CommandDspMixerState { ... }
}Expand description
The trait for specification of mixer.
Required Associated Constants§
Sourceconst SOURCE_PORTS: &'static [TargetPort]
const SOURCE_PORTS: &'static [TargetPort]
The sources of mixer inputs.
Sourceconst OUTPUT_PORTS: &'static [TargetPort]
const OUTPUT_PORTS: &'static [TargetPort]
The destination of mixer outputs.
Provided Associated Constants§
Sourceconst MIXER_COUNT: usize = 8usize
const MIXER_COUNT: usize = 8usize
The number of mixers.
Sourceconst OUTPUT_VOLUME_MIN: f32 = 0f32
const OUTPUT_VOLUME_MIN: f32 = 0f32
The minimum value of volume for mixer output.
Sourceconst OUTPUT_VOLUME_MAX: f32 = 1f32
const OUTPUT_VOLUME_MAX: f32 = 1f32
The maximum value of volume for mixer output.
Sourceconst SOURCE_GAIN_MIN: f32 = 0f32
const SOURCE_GAIN_MIN: f32 = 0f32
The minimum value of gain for mixer source.
Sourceconst SOURCE_GAIN_MAX: f32 = 1f32
const SOURCE_GAIN_MAX: f32 = 1f32
The maximum value of gain for mixer source.
Sourceconst SOURCE_PAN_MIN: f32 = -1f32
const SOURCE_PAN_MIN: f32 = -1f32
The minimum value of left and right balance for mixer source.
Sourceconst SOURCE_PAN_MAX: f32 = 1f32
const SOURCE_PAN_MAX: f32 = 1f32
The maximum value of left and right balance for mixer source.
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.