mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-30 16:33: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
|
false
|
||||||
};
|
};
|
||||||
|
|
||||||
const char* nonProAudioOuts[]={
|
|
||||||
"Mono",
|
|
||||||
"Stereo",
|
|
||||||
"What?",
|
|
||||||
"Quadraphonic",
|
|
||||||
"What?",
|
|
||||||
"5.1 Surround",
|
|
||||||
"What?",
|
|
||||||
"7.1 Surround"
|
|
||||||
};
|
|
||||||
|
|
||||||
const char* audioQualities[]={
|
const char* audioQualities[]={
|
||||||
"High",
|
"High",
|
||||||
"Low"
|
"Low"
|
||||||
|
@ -275,12 +264,6 @@ const char* specificControls[18]={
|
||||||
settingsChanged=true; \
|
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) \
|
#define UI_COLOR_CONFIG(what,label) \
|
||||||
if (ImGui::ColorEdit4(label "##CC_" #what,(float*)&uiColors[what])) { \
|
if (ImGui::ColorEdit4(label "##CC_" #what,(float*)&uiColors[what])) { \
|
||||||
applyUISettings(false); \
|
applyUISettings(false); \
|
||||||
|
@ -1120,7 +1103,6 @@ void FurnaceGUI::drawSettings() {
|
||||||
|
|
||||||
ImGui::TableNextRow();
|
ImGui::TableNextRow();
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
if (isProAudio[settings.audioEngine]) {
|
|
||||||
ImGui::AlignTextToFramePadding();
|
ImGui::AlignTextToFramePadding();
|
||||||
ImGui::Text("Outputs");
|
ImGui::Text("Outputs");
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
|
@ -1129,19 +1111,8 @@ void FurnaceGUI::drawSettings() {
|
||||||
if (settings.audioChans>16) settings.audioChans=16;
|
if (settings.audioChans>16) settings.audioChans=16;
|
||||||
settingsChanged=true;
|
settingsChanged=true;
|
||||||
}
|
}
|
||||||
} else {
|
if (ImGui::IsItemHovered()) {
|
||||||
ImGui::AlignTextToFramePadding();
|
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::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::TableNextRow();
|
ImGui::TableNextRow();
|
||||||
|
|
Loading…
Reference in a new issue