From 66ca51bf431f7f7579358ee4493588ab3a182f59 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Tue, 18 Feb 2014 20:48:21 +0100 Subject: [PATCH] RemoteZynAddSubFX: start/stop NIO system Fixes crash when showing GUI of ZynAddSubFX. --- plugins/zynaddsubfx/RemoteZynAddSubFx.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/zynaddsubfx/RemoteZynAddSubFx.cpp b/plugins/zynaddsubfx/RemoteZynAddSubFx.cpp index a57e69489..cdd7a6f16 100644 --- a/plugins/zynaddsubfx/RemoteZynAddSubFx.cpp +++ b/plugins/zynaddsubfx/RemoteZynAddSubFx.cpp @@ -35,6 +35,7 @@ #include "RemoteZynAddSubFx.h" #include "LocalZynAddSubFx.h" +#include "zynaddsubfx/src/Nio/Nio.h" #include "zynaddsubfx/src/UI/MasterUI.h" #include @@ -49,6 +50,8 @@ public: m_guiSleepTime( 100 ), m_guiExit( false ) { + Nio::start(); + setInputCount( 0 ); sendMessage( IdInitDone ); waitForMessage( IdInitDone ); @@ -65,6 +68,8 @@ public: #else usleep( m_guiSleepTime * 2 * 1000 ); #endif + + Nio::stop(); } virtual void updateSampleRate()