reference player sync state now in GUI

This commit is contained in:
tildearrow 2025-10-29 20:00:08 -05:00
parent cb220d41ec
commit a78c59e17e
3 changed files with 7 additions and 2 deletions

View file

@ -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),

View file

@ -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;

View file

@ -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();