21class AudioEngineApplication :
public juce::JUCEApplication
24 AudioEngineApplication ();
25 ~AudioEngineApplication ()
override;
27 void initialise (
const juce::String &command_line)
override;
28 void shutdown ()
override { }
29 const juce::String getApplicationName ()
override {
return "ZrythmEngine"; }
30 const juce::String getApplicationVersion ()
override {
return "1.0"; }
31 bool moreThanOneInstanceAllowed ()
override {
return false; }
32 void anotherInstanceStarted (
const juce::String &commandLine)
override { }
33 void systemRequestedQuit ()
override { }
34 void suspended ()
override { }
35 void resumed ()
override { }
36 void unhandledException (
37 const std::exception *,
38 const juce::String &sourceFilename,
39 int lineNumber)
override
43 static bool is_audio_engine_process ()
45 return qApp->applicationName () == u
"ZrythmEngine"_s;
51 void post_exec_initialization ();
55 void onNewConnection ();
56 void onDataReceived ();
60 std::unique_ptr<backward::SignalHandling> signal_handling_;
61 QLocalServer * server_ =
nullptr;
62 QLocalSocket * client_connection_ =
nullptr;
63 std::unique_ptr<QCoreApplication> qt_app_;