Struct goxlr_daemon::profile::ProfileAdapter
source · [−]Fields
name: String
profile: Profile
Implementations
sourceimpl ProfileAdapter
impl ProfileAdapter
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 create_router(&self) -> [EnumSet<OutputDevice>; 8]
pub fn create_router_table(&self) -> [[bool; 5]; 8]
pub fn get_router(&self, input: InputDevice) -> EnumMap<OutputDevice, bool>
pub fn set_routing(
&mut self,
input: InputDevice,
output: OutputDevice,
enabled: bool
)
pub fn get_fader_assignment(&self, fader: FaderName) -> ChannelName
pub fn set_fader_assignment(&mut self, fader: FaderName, channel: ChannelName)
pub fn switch_fader_assignment(
&mut self,
fader_one: FaderName,
fader_two: FaderName
)
pub fn set_fader_display(
&mut self,
fader: FaderName,
display: BasicColourDisplay
)
pub fn set_fader_colours(
&mut self,
fader: FaderName,
top: String,
bottom: String
) -> Result<()>
pub fn get_channel_volume(&self, channel: ChannelName) -> u8
pub fn get_volumes(&self) -> [u8; 11]
pub fn set_channel_volume(&mut self, channel: ChannelName, volume: u8)
pub fn get_colour_map(&self, use_format_1_3_40: bool) -> [u8; 520]
fn get_sampler_lighting(&self, target: ColourTargets) -> [u8; 4]
fn get_colour_array(
&self,
target: ColourTargets,
button: SampleButtons
) -> [u8; 4]
Regular Mute button handlers
‘Cough’ / Mute Chat Button handlers..
sourcepub fn get_mic_fader_id(&self) -> u8
pub fn get_mic_fader_id(&self) -> u8
Fader Stuff
pub fn set_mic_fader_id(&mut self, id: u8)
pub fn fader_from_id(&self, fader: u8) -> FaderName
pub fn is_fader_gradient(&self, fader: FaderName) -> bool
pub fn is_fader_meter(&self, fader: FaderName) -> bool
Bleep Button *
sourcepub fn load_effect_bank(&mut self, preset: EffectBankPresets)
pub fn load_effect_bank(&mut self, preset: EffectBankPresets)
Effects Bank Behaviours *
pub fn toggle_megaphone(&mut self)
pub fn toggle_robot(&mut self)
pub fn toggle_hardtune(&mut self)
pub fn toggle_effects(&mut self)
pub fn get_pitch_value(&self) -> i8
pub fn set_pitch_value(&mut self, value: i8)
pub fn get_active_pitch_profile(&self) -> &PitchEncoder
pub fn get_gender_value(&self) -> i8
pub fn set_gender_value(&mut self, value: i8)
pub fn get_active_gender_profile(&self) -> &GenderEncoder
pub fn get_reverb_value(&self) -> i8
pub fn set_reverb_value(&mut self, value: i8)
pub fn get_active_reverb_profile(&self) -> &ReverbEncoder
pub fn get_echo_value(&self) -> i8
pub fn set_echo_value(&mut self, value: i8)
pub fn get_active_echo_profile(&self) -> &EchoEncoder
pub fn get_active_megaphone_profile(&self) -> &MegaphoneEffect
pub fn get_active_robot_profile(&self) -> &RobotEffect
pub fn get_active_hardtune_profile(&self) -> &HardtuneEffect
pub fn is_active_hardtune_source_all(&self) -> bool
pub fn get_active_hardtune_source(&self) -> InputDevice
pub fn is_hardtune_pitch_enabled(&self) -> bool
pub fn is_pitch_narrow(&self) -> bool
pub fn is_fx_enabled(&self) -> bool
pub fn is_megaphone_enabled(&self) -> bool
pub fn is_robot_enabled(&self) -> bool
pub fn is_hardtune_enabled(&self) -> bool
sourcepub fn load_sample_bank(&mut self, bank: SampleBank)
pub fn load_sample_bank(&mut self, bank: SampleBank)
Sampler Related *
pub fn current_sample_bank_has_samples(&self, button: SampleButtons) -> bool
pub fn get_sample_file(&self, button: SampleButtons) -> String
pub fn is_sample_active(&self, button: SampleButtons) -> bool
Colour Changing Code *
Generic Stuff *
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ProfileAdapter
impl Send for ProfileAdapter
impl Sync for ProfileAdapter
impl Unpin for ProfileAdapter
impl UnwindSafe for ProfileAdapter
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