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:
Tobias Doerffel
2009-08-28 23:54:18 +02:00
parent 78536d9065
commit ee63a13f2d
2 changed files with 9 additions and 8 deletions

View File

@@ -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

View File

@@ -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