GUI: audio failure resilience
This commit is contained in:
parent
fe47a2ba09
commit
b0698dbac3
5 changed files with 35 additions and 11 deletions
|
|
@ -3584,7 +3584,9 @@ void FurnaceGUI::commitSettings() {
|
|||
|
||||
e->saveConf();
|
||||
|
||||
e->switchMaster();
|
||||
if (!e->switchMaster()) {
|
||||
showError("could not initialize audio!");
|
||||
}
|
||||
|
||||
ImGui::GetIO().Fonts->Clear();
|
||||
|
||||
|
|
|
|||
|
|
@ -397,9 +397,6 @@ class FurnaceGUI {
|
|||
int load(String path);
|
||||
void exportAudio(String path, DivAudioExportModes mode);
|
||||
|
||||
void showWarning(String what, FurnaceGUIWarnings type);
|
||||
void showError(String what);
|
||||
|
||||
void applyUISettings();
|
||||
|
||||
void encodeMMLStr(String& target, int* macro, int macroLen, int macroLoop);
|
||||
|
|
@ -411,6 +408,8 @@ class FurnaceGUI {
|
|||
const char* getSystemName(DivSystem which);
|
||||
|
||||
public:
|
||||
void showWarning(String what, FurnaceGUIWarnings type);
|
||||
void showError(String what);
|
||||
const char* noteName(short note, short octave);
|
||||
bool decodeNote(const char* what, short& note, short& octave);
|
||||
void bindEngine(DivEngine* eng);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue