aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorRaulshc <[email protected]>2018-03-18 17:53:07 +0100
committerGitHub <[email protected]>2018-03-18 17:53:07 +0100
commit56423b9ef160aa4313f1db81da7197eb6a25efa8 (patch)
tree62aa5e3995278ffa512a74ef3f7bc4d176749fca /utils
parent6fd23f09842b81788298e1840b8626252fdf5e18 (diff)
Alsoft-config: Add pitch shifter effect
Diffstat (limited to 'utils')
-rw-r--r--utils/alsoft-config/mainwindow.cpp4
-rw-r--r--utils/alsoft-config/mainwindow.ui30
2 files changed, 27 insertions, 7 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp
index a3b0c559..94aa0750 100644
--- a/utils/alsoft-config/mainwindow.cpp
+++ b/utils/alsoft-config/mainwindow.cpp
@@ -380,6 +380,7 @@ MainWindow::MainWindow(QWidget *parent) :
connect(ui->enableFlangerCheck, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
connect(ui->enableModulatorCheck, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
connect(ui->enableDedicatedCheck, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
+ connect(ui->enablePitchShifterCheck, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
connect(ui->pulseAutospawnCheckBox, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
connect(ui->pulseAllowMovesCheckBox, SIGNAL(stateChanged(int)), this, SLOT(enableApplyButton()));
@@ -845,6 +846,7 @@ void MainWindow::loadConfig(const QString &fname)
ui->enableFlangerCheck->setChecked(!excludefx.contains("flanger", Qt::CaseInsensitive));
ui->enableModulatorCheck->setChecked(!excludefx.contains("modulator", Qt::CaseInsensitive));
ui->enableDedicatedCheck->setChecked(!excludefx.contains("dedicated", Qt::CaseInsensitive));
+ ui->enablePitchShifterCheck->setChecked(!excludefx.contains("pshifter", Qt::CaseInsensitive));
ui->pulseAutospawnCheckBox->setChecked(settings.value("pulse/spawn-server", true).toBool());
ui->pulseAllowMovesCheckBox->setChecked(settings.value("pulse/allow-moves", false).toBool());
@@ -1058,6 +1060,8 @@ void MainWindow::saveConfig(const QString &fname) const
strlist.append("modulator");
if(!ui->enableDedicatedCheck->isChecked())
strlist.append("dedicated");
+ if(!ui->enablePitchShifterCheck->isChecked())
+ strlist.append("pshifter");
settings.setValue("excludefx", strlist.join(QChar(',')));
settings.setValue("pulse/spawn-server",
diff --git a/utils/alsoft-config/mainwindow.ui b/utils/alsoft-config/mainwindow.ui
index b91c1c4d..b4766d5a 100644
--- a/utils/alsoft-config/mainwindow.ui
+++ b/utils/alsoft-config/mainwindow.ui
@@ -53,7 +53,7 @@
</rect>
</property>
<property name="currentIndex">
- <number>0</number>
+ <number>5</number>
</property>
<widget class="QWidget" name="tab_3">
<attribute name="title">
@@ -131,8 +131,8 @@ to stereo output.</string>
<rect>
<x>380</x>
<y>20</y>
- <width>93</width>
- <height>29</height>
+ <width>80</width>
+ <height>20</height>
</rect>
</property>
<property name="toolTip">
@@ -1933,7 +1933,7 @@ be useful for preventing those extensions from being used.</string>
<x>10</x>
<y>100</y>
<width>511</width>
- <height>191</height>
+ <height>231</height>
</rect>
</property>
<property name="toolTip">
@@ -2108,6 +2108,22 @@ added by the ALC_EXT_DEDICATED extension.</string>
<bool>true</bool>
</property>
</widget>
+ <widget class="QCheckBox" name="enablePitchShifterCheck">
+ <property name="geometry">
+ <rect>
+ <x>70</x>
+ <y>180</y>
+ <width>131</width>
+ <height>21</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Pitch Shifter</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ </widget>
</widget>
<widget class="QLabel" name="label_13">
<property name="geometry">
@@ -2130,8 +2146,8 @@ added by the ALC_EXT_DEDICATED extension.</string>
<rect>
<x>160</x>
<y>20</y>
- <width>125</width>
- <height>29</height>
+ <width>108</width>
+ <height>20</height>
</rect>
</property>
<property name="sizeAdjustPolicy">
@@ -2300,7 +2316,7 @@ added by the ALC_EXT_DEDICATED extension.</string>
<x>0</x>
<y>0</y>
<width>564</width>
- <height>27</height>
+ <height>21</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">