MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / onBs2bPresetUpdated

Method onBs2bPresetUpdated

src/MainWindow.cpp:929–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

927}
928
929void MainWindow::onBs2bPresetUpdated()
930{
931 if (_blockApply)
932 {
933 return;
934 }
935
936 const auto index = PresetProvider::BS2B::lookupPreset(ui->crossfeed_mode->currentText());
937
938 switch (index)
939 {
940 case 0: // BS2B weak
941 ui->bs2b_fcut->setValueA(700);
942 ui->bs2b_feed->setValueA(60);
943 break;
944 case 1: // BS2B strong
945 ui->bs2b_fcut->setValueA(650);
946 ui->bs2b_feed->setValueA(95);
947 break;
948 }
949
950 ui->bs2b_custom_box->setEnabled(index == 99);
951
952 applyConfig();
953}
954
955void MainWindow::onReverbPresetUpdated()
956{

Callers

nothing calls this directly

Calls 2

setValueAMethod · 0.80
setEnabledMethod · 0.80

Tested by

no test coverage detected