This commit is contained in:
LTVA1 2024-08-23 07:30:06 +03:00 committed by tildearrow
parent 9f9638931d
commit 3b6ddebc64
3 changed files with 6 additions and 6 deletions

View file

@ -841,7 +841,7 @@ void DivPlatformSNES::reset() {
memcpy(sampleMem,copyOfSampleMem,65536); memcpy(sampleMem,copyOfSampleMem,65536);
dsp.init(sampleMem); dsp.init(sampleMem);
dsp.set_output(NULL,0); dsp.set_output(NULL,0);
dsp.setupInterpolation(interpolationOn); dsp.setupInterpolation(!interpolationOff);
memset(regPool,0,128); memset(regPool,0,128);
// this can't be 0 or channel 1 won't play // this can't be 0 or channel 1 won't play
@ -1026,7 +1026,7 @@ void DivPlatformSNES::setFlags(const DivConfig& flags) {
initEchoMask=flags.getInt("echoMask",0); initEchoMask=flags.getInt("echoMask",0);
interpolationOn=flags.getBool("interpolationOn",true); interpolationOff=flags.getBool("interpolationOff",false);
} }
int DivPlatformSNES::init(DivEngine* p, int channels, int sugRate, const DivConfig& flags) { int DivPlatformSNES::init(DivEngine* p, int channels, int sugRate, const DivConfig& flags) {

View file

@ -69,7 +69,7 @@ class DivPlatformSNES: public DivDispatch {
bool writeEcho; bool writeEcho;
bool writeDryVol; bool writeDryVol;
bool echoOn; bool echoOn;
bool interpolationOn; bool interpolationOff;
bool initEchoOn; bool initEchoOn;
signed char initEchoVolL; signed char initEchoVolL;

View file

@ -1969,7 +1969,7 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl
echoFilter[6]=flags.getInt("echoFilter6",0); echoFilter[6]=flags.getInt("echoFilter6",0);
echoFilter[7]=flags.getInt("echoFilter7",0); echoFilter[7]=flags.getInt("echoFilter7",0);
bool interpolationOn=flags.getBool("interpolationOn",true); bool interpolationOff=flags.getBool("interpolationOff",false);
ImGui::Text(_("Volume scale:")); ImGui::Text(_("Volume scale:"));
if (CWSliderInt(_("Left##VolScaleL"),&vsL,0,127)) { if (CWSliderInt(_("Left##VolScaleL"),&vsL,0,127)) {
@ -2086,7 +2086,7 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl
ImGui::Text(_("sum: %d"),filterSum); ImGui::Text(_("sum: %d"),filterSum);
ImGui::PopStyleColor(); ImGui::PopStyleColor();
if (ImGui::Checkbox(_("Gaussian interpolation"),&interpolationOn)) { if (ImGui::Checkbox(_("Disable Gaussian interpolation"),&interpolationOff)) {
altered=true; altered=true;
} }
@ -2108,7 +2108,7 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl
flags.set("echoFilter6",echoFilter[6]); flags.set("echoFilter6",echoFilter[6]);
flags.set("echoFilter7",echoFilter[7]); flags.set("echoFilter7",echoFilter[7]);
flags.set("echoMask",echoMask); flags.set("echoMask",echoMask);
flags.set("interpolationOn",interpolationOn); flags.set("interpolationOff",interpolationOff);
}); });
} }