1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 16:08:39 -05:00

Refactoring: removed device parameter from all start() methods in sample sink plugins

This commit is contained in:
f4exb 2017-04-14 03:44:49 +02:00
parent b8623c90ce
commit 414a7ccd87
8 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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");
} }