diff options
Diffstat (limited to 'plugins/dfsound/spucfg-0.1df')
| -rw-r--r-- | plugins/dfsound/spucfg-0.1df/dfsound.glade2 | 15 | ||||
| -rw-r--r-- | plugins/dfsound/spucfg-0.1df/main.c | 20 |
2 files changed, 32 insertions, 3 deletions
diff --git a/plugins/dfsound/spucfg-0.1df/dfsound.glade2 b/plugins/dfsound/spucfg-0.1df/dfsound.glade2 index c071a09e..d2729bb8 100644 --- a/plugins/dfsound/spucfg-0.1df/dfsound.glade2 +++ b/plugins/dfsound/spucfg-0.1df/dfsound.glade2 @@ -78,7 +78,8 @@ <child> <widget class="GtkComboBox" id="cbVolume2"> <property name="visible">True</property> - <property name="items" translatable="yes">Low + <property name="items" translatable="yes">None +Low Medium Loud Loudest</property> @@ -258,6 +259,18 @@ Cubic</property> <property name="position">2</property> </packing> </child> + <child> + <widget class="GtkCheckButton" id="chkFreqResponse"> + <property name="label" translatable="yes">Frequency Response - Output Filter</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="draw_indicator">True</property> + </widget> + <packing> + <property name="position">3</property> + </packing> + </child> </widget> </child> </widget> diff --git a/plugins/dfsound/spucfg-0.1df/main.c b/plugins/dfsound/spucfg-0.1df/main.c index dd38645a..034379f7 100644 --- a/plugins/dfsound/spucfg-0.1df/main.c +++ b/plugins/dfsound/spucfg-0.1df/main.c @@ -126,7 +126,7 @@ int main(int argc, char *argv[]) p = strstr(p, "="); len = 1; } - val = set_limit (p, len, 0, 4); + val = set_limit (p, len, -1, 4) + 1; } else val = 2; gtk_combo_box_set_active(GTK_COMBO_BOX (glade_xml_get_widget(xml, "cbVolume2")), val); @@ -194,6 +194,19 @@ int main(int argc, char *argv[]) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON (glade_xml_get_widget(xml, "chkDisStereo")), val); if (pB) { + strcpy(t, "\nFreqResponse"); + p = strstr(pB, t); + if (p) { + p = strstr(p, "="); + len = 1; + } + + val = set_limit (p, len, 0, 1); + } else val = 0; + + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON (glade_xml_get_widget(xml, "chkFreqResponse")), val); + + if (pB) { strcpy(t, "\nUseReverb"); p = strstr(pB, t); if (p) { @@ -233,7 +246,7 @@ void SaveConfig(GtkWidget *widget, gpointer user_data) } val = gtk_combo_box_get_active(GTK_COMBO_BOX(glade_xml_get_widget(xml, "cbVolume2"))); - fprintf(fp, "\nVolume = %d\n", val); + fprintf(fp, "\nVolume = %d\n", val - 1); val = gtk_combo_box_get_active(GTK_COMBO_BOX(glade_xml_get_widget(xml, "cbInterpolation2"))); fprintf(fp, "\nUseInterpolation = %d\n", val); @@ -250,6 +263,9 @@ void SaveConfig(GtkWidget *widget, gpointer user_data) val = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(glade_xml_get_widget(xml, "chkDisStereo"))); fprintf(fp, "\nDisStereo = %d\n", val); + val = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(glade_xml_get_widget(xml, "chkFreqResponse"))); + fprintf(fp, "\nFreqResponse = %d\n", val); + val = gtk_combo_box_get_active(GTK_COMBO_BOX(glade_xml_get_widget(xml, "cbReverb2"))); fprintf(fp, "\nUseReverb = %d\n", val); |
