mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 23:13:01 +00:00
GUI: drop non-pro audio outputs setting
This commit is contained in:
parent
56a3cfe13d
commit
4ed781d5f6
1 changed files with 10 additions and 39 deletions
|
@ -104,17 +104,6 @@ const bool isProAudio[]={
|
|||
false
|
||||
};
|
||||
|
||||
const char* nonProAudioOuts[]={
|
||||
"Mono",
|
||||
"Stereo",
|
||||
"What?",
|
||||
"Quadraphonic",
|
||||
"What?",
|
||||
"5.1 Surround",
|
||||
"What?",
|
||||
"7.1 Surround"
|
||||
};
|
||||
|
||||
const char* audioQualities[]={
|
||||
"High",
|
||||
"Low"
|
||||
|
@ -275,12 +264,6 @@ const char* specificControls[18]={
|
|||
settingsChanged=true; \
|
||||
}
|
||||
|
||||
#define CHANS_SELECTABLE(x) \
|
||||
if (ImGui::Selectable(nonProAudioOuts[x-1],settings.audioChans==x)) { \
|
||||
settings.audioChans=x; \
|
||||
settingsChanged=true; \
|
||||
}
|
||||
|
||||
#define UI_COLOR_CONFIG(what,label) \
|
||||
if (ImGui::ColorEdit4(label "##CC_" #what,(float*)&uiColors[what])) { \
|
||||
applyUISettings(false); \
|
||||
|
@ -1120,28 +1103,16 @@ void FurnaceGUI::drawSettings() {
|
|||
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
if (isProAudio[settings.audioEngine]) {
|
||||
ImGui::AlignTextToFramePadding();
|
||||
ImGui::Text("Outputs");
|
||||
ImGui::TableNextColumn();
|
||||
if (ImGui::InputInt("##AudioChansI",&settings.audioChans,1,2)) {
|
||||
if (settings.audioChans<1) settings.audioChans=1;
|
||||
if (settings.audioChans>16) settings.audioChans=16;
|
||||
settingsChanged=true;
|
||||
}
|
||||
} else {
|
||||
ImGui::AlignTextToFramePadding();
|
||||
ImGui::Text("Channels");
|
||||
ImGui::TableNextColumn();
|
||||
String chStr=(settings.audioChans<1 || settings.audioChans>8)?"What?":nonProAudioOuts[settings.audioChans-1];
|
||||
if (ImGui::BeginCombo("##AudioChans",chStr.c_str())) {
|
||||
CHANS_SELECTABLE(1);
|
||||
CHANS_SELECTABLE(2);
|
||||
CHANS_SELECTABLE(4);
|
||||
CHANS_SELECTABLE(6);
|
||||
CHANS_SELECTABLE(8);
|
||||
ImGui::EndCombo();
|
||||
}
|
||||
ImGui::AlignTextToFramePadding();
|
||||
ImGui::Text("Outputs");
|
||||
ImGui::TableNextColumn();
|
||||
if (ImGui::InputInt("##AudioChansI",&settings.audioChans,1,2)) {
|
||||
if (settings.audioChans<1) settings.audioChans=1;
|
||||
if (settings.audioChans>16) settings.audioChans=16;
|
||||
settingsChanged=true;
|
||||
}
|
||||
if (ImGui::IsItemHovered()) {
|
||||
ImGui::SetTooltip("common values:\n- 1 for mono\n- 2 for stereo\n- 4 for quadraphonic\n- 6 for 5.1 surround\n- 8 for 7.1 surround");
|
||||
}
|
||||
|
||||
ImGui::TableNextRow();
|
||||
|
|
Loading…
Reference in a new issue