pub trait AvcLevelOperation: AvcAudioFeatureSpecification {
const LEVEL_MIN: i16 = -32_768i16;
const LEVEL_MAX: i16 = 0i16;
const LEVEL_STEP: i16 = 256i16;
// Provided methods
fn create_level_parameters() -> AvcLevelParameters { ... }
fn cache_levels(
avc: &BebobAvc,
params: &mut AvcLevelParameters,
timeout_ms: u32,
) -> Result<(), Error> { ... }
fn update_levels(
avc: &BebobAvc,
params: &AvcLevelParameters,
old: &mut AvcLevelParameters,
timeout_ms: u32,
) -> Result<(), Error> { ... }
}
Expand description
The trait of level operation for audio function blocks by AV/C transaction.
Provided Associated Constants§
Sourceconst LEVEL_STEP: i16 = 256i16
const LEVEL_STEP: i16 = 256i16
The step value of signal level.
Provided Methods§
Sourcefn create_level_parameters() -> AvcLevelParameters
fn create_level_parameters() -> AvcLevelParameters
Instantiate parameters.
Sourcefn cache_levels(
avc: &BebobAvc,
params: &mut AvcLevelParameters,
timeout_ms: u32,
) -> Result<(), Error>
fn cache_levels( avc: &BebobAvc, params: &mut AvcLevelParameters, timeout_ms: u32, ) -> Result<(), Error>
Cache state of hardware to the parameters.
Sourcefn update_levels(
avc: &BebobAvc,
params: &AvcLevelParameters,
old: &mut AvcLevelParameters,
timeout_ms: u32,
) -> Result<(), Error>
fn update_levels( avc: &BebobAvc, params: &AvcLevelParameters, old: &mut AvcLevelParameters, timeout_ms: u32, ) -> Result<(), Error>
Update the hardware when detecting any changes in the parameters.
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.