mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-15 12:51:49 -05:00
Refactoring: removed device parameter from all start() methods in sample sink plugins
This commit is contained in:
parent
b8623c90ce
commit
414a7ccd87
@ -108,7 +108,7 @@ bool BladerfOutput::openDevice()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BladerfOutput::start(int device)
|
bool BladerfOutput::start()
|
||||||
{
|
{
|
||||||
// QMutexLocker mutexLocker(&m_mutex);
|
// QMutexLocker mutexLocker(&m_mutex);
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ public:
|
|||||||
BladerfOutput(DeviceSinkAPI *deviceAPI);
|
BladerfOutput(DeviceSinkAPI *deviceAPI);
|
||||||
virtual ~BladerfOutput();
|
virtual ~BladerfOutput();
|
||||||
|
|
||||||
virtual bool start(int device);
|
virtual bool start();
|
||||||
virtual void stop();
|
virtual void stop();
|
||||||
|
|
||||||
virtual const QString& getDeviceDescription() const;
|
virtual const QString& getDeviceDescription() const;
|
||||||
|
@ -70,7 +70,7 @@ void FileSinkOutput::openFileStream()
|
|||||||
qDebug() << "FileSinkOutput::openFileStream: " << m_fileName.toStdString().c_str();
|
qDebug() << "FileSinkOutput::openFileStream: " << m_fileName.toStdString().c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FileSinkOutput::start(int device)
|
bool FileSinkOutput::start()
|
||||||
{
|
{
|
||||||
QMutexLocker mutexLocker(&m_mutex);
|
QMutexLocker mutexLocker(&m_mutex);
|
||||||
qDebug() << "FileSinkOutput::start";
|
qDebug() << "FileSinkOutput::start";
|
||||||
|
@ -151,7 +151,7 @@ public:
|
|||||||
FileSinkOutput(DeviceSinkAPI *deviceAPI, const QTimer& masterTimer);
|
FileSinkOutput(DeviceSinkAPI *deviceAPI, const QTimer& masterTimer);
|
||||||
virtual ~FileSinkOutput();
|
virtual ~FileSinkOutput();
|
||||||
|
|
||||||
virtual bool start(int device);
|
virtual bool start();
|
||||||
virtual void stop();
|
virtual void stop();
|
||||||
|
|
||||||
virtual const QString& getDeviceDescription() const;
|
virtual const QString& getDeviceDescription() const;
|
||||||
|
@ -95,7 +95,7 @@ bool HackRFOutput::openDevice()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HackRFOutput::start(int device)
|
bool HackRFOutput::start()
|
||||||
{
|
{
|
||||||
if (!m_dev) {
|
if (!m_dev) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -71,7 +71,7 @@ public:
|
|||||||
HackRFOutput(DeviceSinkAPI *deviceAPI);
|
HackRFOutput(DeviceSinkAPI *deviceAPI);
|
||||||
virtual ~HackRFOutput();
|
virtual ~HackRFOutput();
|
||||||
|
|
||||||
virtual bool start(int device);
|
virtual bool start();
|
||||||
virtual void stop();
|
virtual void stop();
|
||||||
|
|
||||||
virtual const QString& getDeviceDescription() const;
|
virtual const QString& getDeviceDescription() const;
|
||||||
|
@ -31,7 +31,7 @@ public:
|
|||||||
DeviceSampleSink();
|
DeviceSampleSink();
|
||||||
virtual ~DeviceSampleSink();
|
virtual ~DeviceSampleSink();
|
||||||
|
|
||||||
virtual bool start(int device) = 0;
|
virtual bool start() = 0;
|
||||||
virtual void stop() = 0;
|
virtual void stop() = 0;
|
||||||
|
|
||||||
virtual const QString& getDeviceDescription() const = 0;
|
virtual const QString& getDeviceDescription() const = 0;
|
||||||
|
@ -449,7 +449,7 @@ DSPDeviceSinkEngine::State DSPDeviceSinkEngine::gotoRunning()
|
|||||||
|
|
||||||
// Start everything
|
// Start everything
|
||||||
|
|
||||||
if(!m_deviceSampleSink->start(m_sampleSinkSequence))
|
if(!m_deviceSampleSink->start())
|
||||||
{
|
{
|
||||||
return gotoError("DSPDeviceSinkEngine::gotoRunning: Could not start sample source");
|
return gotoError("DSPDeviceSinkEngine::gotoRunning: Could not start sample source");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user