MCPcopy Index your code
hub / github.com/RizeCrime/linuxblaster_control / all_features

Function all_features

src/features.rs:486–532  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

484// ─── Feature Registration ────────────────────────────────────────────────────
485
486pub fn all_features() -> Vec<Feature> {
487 vec![
488 Feature::dsp(FeatureId::SurroundToggle),
489 Feature::dsp(FeatureId::SurroundLevel),
490 Feature::dsp(FeatureId::SurroundDistance),
491 Feature::dsp(FeatureId::DialogPlusToggle),
492 Feature::dsp(FeatureId::DialogPlusLevel),
493 Feature::dsp(FeatureId::SmartVolToggle),
494 Feature::dsp(FeatureId::SmartVolLevel),
495 Feature::dsp(FeatureId::SmartVolMode),
496 Feature::dsp(FeatureId::CrystalizerToggle),
497 Feature::dsp(FeatureId::CrystalizerLevel),
498 Feature::dsp(FeatureId::BassToggle),
499 Feature::dsp(FeatureId::BassLevel),
500 Feature::dsp(FeatureId::EqToggle),
501 Feature::dsp(FeatureId::EqPreAmp),
502 Feature::dsp(FeatureId::Eq31Hz),
503 Feature::dsp(FeatureId::Eq62Hz),
504 Feature::dsp(FeatureId::Eq125Hz),
505 Feature::dsp(FeatureId::Eq250Hz),
506 Feature::dsp(FeatureId::Eq500Hz),
507 Feature::dsp(FeatureId::Eq1kHz),
508 Feature::dsp(FeatureId::Eq2kHz),
509 Feature::dsp(FeatureId::Eq4kHz),
510 Feature::dsp(FeatureId::Eq8kHz),
511 Feature::dsp(FeatureId::Eq16kHz),
512 // manual struct instantiation used, so overrides are easily visible
513 Feature {
514 id: FeatureId::SbxMaster,
515 value: Mutex::new(f32::NAN),
516 getter: global_profile_get,
517 setter: global_profile_set,
518 },
519 Feature {
520 id: FeatureId::ScoutMode,
521 value: Mutex::new(f32::NAN),
522 getter: global_profile_get,
523 setter: global_profile_set,
524 },
525 Feature {
526 id: FeatureId::Output,
527 value: Mutex::new(f32::NAN),
528 getter: output_get,
529 setter: output_set,
530 },
531 ]
532}
533
534// ─── USB Packet Helpers ──────────────────────────────────────────────────────
535

Callers 6

deserializeMethod · 0.85
initMethod · 0.85
resetMethod · 0.85
no_duplicate_featuresFunction · 0.85

Calls

no outgoing calls

Tested by 3

no_duplicate_featuresFunction · 0.68