giga-refactor, part 15
dynamic PCM DAC
This commit is contained in:
parent
9b35ca77c5
commit
1a113a4d52
5 changed files with 441 additions and 367 deletions
|
|
@ -1953,6 +1953,7 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl
|
|||
int bitDepth=flags.getInt("outDepth",15)+1;
|
||||
int interpolation=flags.getInt("interpolation",0);
|
||||
int volMax=flags.getInt("volMax",255);
|
||||
float volMult=flags.getFloat("volMult",1.0f);
|
||||
bool stereo=flags.getBool("stereo",false);
|
||||
|
||||
ImGui::Text(_("Output rate:"));
|
||||
|
|
@ -1977,6 +1978,13 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl
|
|||
altered=true;
|
||||
}
|
||||
|
||||
ImGui::Text(_("Volume multiplier:"));
|
||||
if (CWSliderFloat("##VolMult",&volMult,0.0f,1.0f)) {
|
||||
if (volMult<0.0f) volMult=0.0f;
|
||||
if (volMult>1.0f) volMult=1.0f;
|
||||
altered=true;
|
||||
} rightClickable
|
||||
|
||||
ImGui::Text(_("Interpolation:"));
|
||||
ImGui::Indent();
|
||||
if (ImGui::RadioButton(_("None"),interpolation==0)) {
|
||||
|
|
@ -2004,6 +2012,7 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl
|
|||
flags.set("stereo",stereo);
|
||||
flags.set("interpolation",interpolation);
|
||||
flags.set("volMax",volMax);
|
||||
flags.set("volMult",volMult);
|
||||
});
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue