Struct goxlr_daemon::profile::MicProfileAdapter
source · [−]pub struct MicProfileAdapter {
name: String,
profile: MicProfileSettings,
}
Fields
name: String
profile: MicProfileSettings
Implementations
sourceimpl MicProfileAdapter
impl MicProfileAdapter
pub fn from_named_or_default(name: Option<String>, directory: &Path) -> Self
pub fn from_named(name: String, directory: &Path) -> Result<Self>
pub fn default() -> Self
pub fn from_reader<R: Read + Seek>(name: String, reader: R) -> Result<Self>
pub fn write_profile(
&mut self,
name: String,
directory: &Path,
overwrite: bool
) -> Result<()>
pub fn name(&self) -> &str
pub fn mic_gains(&self) -> [u16; 3]
pub fn mic_type(&self) -> MicrophoneType
pub fn noise_gate_ipc(&self) -> NoiseGate
pub fn compressor_ipc(&self) -> Compressor
pub fn equalizer_ipc(&self) -> Equaliser
pub fn equalizer_mini_ipc(&self) -> EqualiserMini
pub fn set_mic_type(&mut self, mic_type: MicrophoneType)
pub fn set_mic_gain(&mut self, mic_type: MicrophoneType, gain: u16)
pub fn set_eq_gain(&mut self, gain: EqGains, value: i8) -> EffectKey
pub fn set_eq_freq(
&mut self,
freq: EqFrequencies,
value: f32
) -> Result<EffectKey>
pub fn set_mini_eq_gain(
&mut self,
gain: MiniEqGains,
value: i8
) -> MicrophoneParamKey
pub fn set_mini_eq_freq(
&mut self,
freq: MiniEqFrequencies,
value: f32
) -> MicrophoneParamKey
pub fn set_gate_threshold(&mut self, value: i8)
pub fn set_gate_attenuation(&mut self, value: u8)
pub fn set_gate_attack(&mut self, value: GateTimes)
pub fn set_gate_release(&mut self, value: GateTimes)
pub fn set_gate_active(&mut self, value: bool)
pub fn set_compressor_threshold(&mut self, value: i8)
pub fn set_compressor_ratio(&mut self, value: CompressorRatio)
pub fn set_compressor_attack(&mut self, value: CompressorAttackTime)
pub fn set_compressor_release(&mut self, value: CompressorReleaseTime)
pub fn set_compressor_makeup(&mut self, value: u8)
sourcepub fn get_param_value(
&self,
param: MicrophoneParamKey,
serial: &str,
settings: &SettingsHandle
) -> [u8; 4]
pub fn get_param_value(
&self,
param: MicrophoneParamKey,
serial: &str,
settings: &SettingsHandle
) -> [u8; 4]
The uber method, fetches the relevant setting from the profile and returns it..
fn calculate_bleep(&self, value: i8) -> [u8; 4]
sourcepub fn get_effect_value(
&self,
effect: EffectKey,
serial: &str,
settings: &SettingsHandle,
main_profile: &ProfileAdapter
) -> i32
pub fn get_effect_value(
&self,
effect: EffectKey,
serial: &str,
settings: &SettingsHandle,
main_profile: &ProfileAdapter
) -> i32
This is going to require a CRAPLOAD of work to sort..
fn u8_to_f32(&self, value: u8) -> [u8; 4]
fn i8_to_f32(&self, value: i8) -> [u8; 4]
fn f32_to_f32(&self, value: f32) -> [u8; 4]
fn gain_value(&self, value: u16) -> [u8; 4]
fn gate_attenuation_from_percent(&self, value: u8) -> i8
pub fn get_common_keys(&self) -> HashSet<EffectKey>
pub fn get_full_keys(&self) -> HashSet<EffectKey>
pub fn get_reverb_keyset(&self) -> HashSet<EffectKey>
pub fn get_echo_keyset(&self) -> HashSet<EffectKey>
pub fn get_pitch_keyset(&self) -> HashSet<EffectKey>
pub fn get_gender_keyset(&self) -> HashSet<EffectKey>
pub fn get_megaphone_keyset(&self) -> HashSet<EffectKey>
pub fn get_robot_keyset(&self) -> HashSet<EffectKey>
pub fn get_hardtune_keyset(&self) -> HashSet<EffectKey>
pub fn get_deesser(&self) -> i32
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MicProfileAdapter
impl Send for MicProfileAdapter
impl Sync for MicProfileAdapter
impl Unpin for MicProfileAdapter
impl UnwindSafe for MicProfileAdapter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more