diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index ea3faa9c3..a27fdcf1a 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -8278,6 +8278,7 @@ void FurnaceGUI::syncState() { followOrders=e->getConfBool("followOrders",true); followPattern=e->getConfBool("followPattern",true); noteInputPoly=e->getConfBool("noteInputPoly",true); + filePlayerSync=e->getConfBool("filePlayerSync",true); audioExportOptions.loops=e->getConfInt("exportLoops",0); if (audioExportOptions.loops<0) audioExportOptions.loops=0; audioExportOptions.fadeOut=e->getConfDouble("exportFadeOut",0.0); @@ -8437,6 +8438,7 @@ void FurnaceGUI::commitState(DivConfig& conf) { conf.set("followPattern",followPattern); conf.set("orderEditMode",orderEditMode); conf.set("noteInputPoly",noteInputPoly); + conf.set("filePlayerSync",filePlayerSync); if (settings.persistFadeOut) { conf.set("exportLoops",audioExportOptions.loops); conf.set("exportFadeOut",audioExportOptions.fadeOut); @@ -8634,6 +8636,7 @@ FurnaceGUI::FurnaceGUI(): safeMode(false), midiWakeUp(true), makeDrumkitMode(false), + filePlayerSync(true), audioEngineChanged(false), settingsChanged(false), debugFFT(false), diff --git a/src/gui/gui.h b/src/gui/gui.h index 826909d71..50cb9943a 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -1727,6 +1727,7 @@ class FurnaceGUI { bool safeMode; bool midiWakeUp; bool makeDrumkitMode; + bool filePlayerSync; bool audioEngineChanged, settingsChanged, debugFFT, debugRowTimestamps; bool willExport[DIV_MAX_CHIPS]; int vgmExportVersion; diff --git a/src/gui/refPlayer.cpp b/src/gui/refPlayer.cpp index ca0b3d2ff..32190735e 100644 --- a/src/gui/refPlayer.cpp +++ b/src/gui/refPlayer.cpp @@ -79,11 +79,12 @@ void FurnaceGUI::drawRefPlayer() { } ImGui::SameLine(); - pushToggleColors(e->getFilePlayerSync()); + pushToggleColors(filePlayerSync); if (ImGui::Button(_("Sync"))) { - e->setFilePlayerSync(!e->getFilePlayerSync()); + filePlayerSync=!filePlayerSync; } popToggleColors(); + e->setFilePlayerSync(filePlayerSync); float vol=fp->getVolume(); ImGui::SameLine();