mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 10:05:46 -05:00
Fixed DSP device source/sink run command
This commit is contained in:
parent
8f3ef9e76d
commit
e9c8dad663
@ -17,7 +17,6 @@
|
||||
|
||||
#include "dsp/dspcommands.h"
|
||||
|
||||
MESSAGE_CLASS_DEFINITION(DSPExit, Message)
|
||||
MESSAGE_CLASS_DEFINITION(DSPAcquisitionInit, Message)
|
||||
MESSAGE_CLASS_DEFINITION(DSPAcquisitionStart, Message)
|
||||
MESSAGE_CLASS_DEFINITION(DSPAcquisitionStop, Message)
|
||||
|
@ -31,10 +31,6 @@ class BasebandSampleSource;
|
||||
class ThreadedBasebandSampleSource;
|
||||
class AudioFifo;
|
||||
|
||||
class SDRANGEL_API DSPExit : public Message {
|
||||
MESSAGE_CLASS_DECLARATION
|
||||
};
|
||||
|
||||
class SDRANGEL_API DSPAcquisitionInit : public Message {
|
||||
MESSAGE_CLASS_DECLARATION
|
||||
};
|
||||
|
@ -55,10 +55,7 @@ DSPDeviceSinkEngine::~DSPDeviceSinkEngine()
|
||||
void DSPDeviceSinkEngine::run()
|
||||
{
|
||||
qDebug() << "DSPDeviceSinkEngine::run";
|
||||
|
||||
m_state = StIdle;
|
||||
|
||||
m_syncMessenger.done(); // Release start() that is waiting in main thread
|
||||
exec();
|
||||
}
|
||||
|
||||
@ -430,13 +427,7 @@ void DSPDeviceSinkEngine::handleSynchronousMessages()
|
||||
Message *message = m_syncMessenger.getMessage();
|
||||
qDebug() << "DSPDeviceSinkEngine::handleSynchronousMessages: " << message->getIdentifier();
|
||||
|
||||
if (DSPExit::match(*message))
|
||||
{
|
||||
gotoIdle();
|
||||
m_state = StNotStarted;
|
||||
exit();
|
||||
}
|
||||
else if (DSPGenerationInit::match(*message))
|
||||
if (DSPGenerationInit::match(*message))
|
||||
{
|
||||
m_state = gotoIdle();
|
||||
|
||||
|
@ -59,11 +59,8 @@ DSPDeviceSourceEngine::~DSPDeviceSourceEngine()
|
||||
void DSPDeviceSourceEngine::run()
|
||||
{
|
||||
qDebug() << "DSPDeviceSourceEngine::run";
|
||||
|
||||
m_state = StIdle;
|
||||
|
||||
m_syncMessenger.done(); // Release start() that is waiting in main thread
|
||||
exec();
|
||||
exec();
|
||||
}
|
||||
|
||||
void DSPDeviceSourceEngine::start()
|
||||
@ -612,13 +609,7 @@ void DSPDeviceSourceEngine::handleSynchronousMessages()
|
||||
Message *message = m_syncMessenger.getMessage();
|
||||
qDebug() << "DSPDeviceSourceEngine::handleSynchronousMessages: " << message->getIdentifier();
|
||||
|
||||
if (DSPExit::match(*message))
|
||||
{
|
||||
gotoIdle();
|
||||
m_state = StNotStarted;
|
||||
exit();
|
||||
}
|
||||
else if (DSPAcquisitionInit::match(*message))
|
||||
if (DSPAcquisitionInit::match(*message))
|
||||
{
|
||||
m_state = gotoIdle();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user