RemotePlugin: do not skip audio processing when debugging
If DEBUG_REMOTE_PLUGIN was set, RemotePlugin::process() always returned as RemotePlugin::isRunning() returned false. Fix this by always returning true when debugging.
This commit is contained in:
@@ -701,7 +701,11 @@ public:
|
||||
|
||||
inline bool isRunning()
|
||||
{
|
||||
#ifdef DEBUG_REMOTE_PLUGIN
|
||||
return true;
|
||||
#else
|
||||
return m_process.state() != QProcess::NotRunning;
|
||||
#endif
|
||||
}
|
||||
|
||||
inline void waitForInitDone( bool _busy_waiting = true )
|
||||
@@ -993,8 +997,7 @@ RemotePluginBase::message RemotePluginBase::waitForMessage(
|
||||
|
||||
|
||||
RemotePluginClient::RemotePluginClient( key_t _shm_in, key_t _shm_out ) :
|
||||
RemotePluginBase( new shmFifo( _shm_in ),
|
||||
new shmFifo( _shm_out ) ),
|
||||
RemotePluginBase( new shmFifo( _shm_in ), new shmFifo( _shm_out ) ),
|
||||
#ifdef USE_QT_SHMEM
|
||||
m_shmObj(),
|
||||
#endif
|
||||
|
||||
@@ -22,8 +22,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#define COMPILE_REMOTE_PLUGIN_BASE
|
||||
//#define DEBUG_REMOTE_PLUGIN
|
||||
#ifdef DEBUG_REMOTE_PLUGIN
|
||||
#include <QtCore/QDebug>
|
||||
#endif
|
||||
|
||||
#include "RemotePlugin.h"
|
||||
#include "mixer.h"
|
||||
@@ -36,11 +39,6 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
//#define DEBUG_REMOTE_PLUGIN
|
||||
#ifdef DEBUG_REMOTE_PLUGIN
|
||||
#include <QtCore/QDebug>
|
||||
#endif
|
||||
|
||||
|
||||
// simple helper thread monitoring our RemotePlugin - if process terminates
|
||||
// unexpectedly invalidate plugin so LMMS doesn't lock up
|
||||
|
||||
Reference in New Issue
Block a user