reference player sync state now in GUI
This commit is contained in:
parent
cb220d41ec
commit
a78c59e17e
3 changed files with 7 additions and 2 deletions
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue