1
0
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:
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;
}
bool BladerfOutput::start(int device)
bool BladerfOutput::start()
{
// QMutexLocker mutexLocker(&m_mutex);

View File

@ -71,7 +71,7 @@ public:
BladerfOutput(DeviceSinkAPI *deviceAPI);
virtual ~BladerfOutput();
virtual bool start(int device);
virtual bool start();
virtual void stop();
virtual const QString& getDeviceDescription() const;

View File

@ -70,7 +70,7 @@ void FileSinkOutput::openFileStream()
qDebug() << "FileSinkOutput::openFileStream: " << m_fileName.toStdString().c_str();
}
bool FileSinkOutput::start(int device)
bool FileSinkOutput::start()
{
QMutexLocker mutexLocker(&m_mutex);
qDebug() << "FileSinkOutput::start";

View File

@ -151,7 +151,7 @@ public:
FileSinkOutput(DeviceSinkAPI *deviceAPI, const QTimer& masterTimer);
virtual ~FileSinkOutput();
virtual bool start(int device);
virtual bool start();
virtual void stop();
virtual const QString& getDeviceDescription() const;

View File

@ -95,7 +95,7 @@ bool HackRFOutput::openDevice()
return true;
}
bool HackRFOutput::start(int device)
bool HackRFOutput::start()
{
if (!m_dev) {
return false;

View File

@ -71,7 +71,7 @@ public:
HackRFOutput(DeviceSinkAPI *deviceAPI);
virtual ~HackRFOutput();
virtual bool start(int device);
virtual bool start();
virtual void stop();
virtual const QString& getDeviceDescription() const;

View File

@ -31,7 +31,7 @@ public:
DeviceSampleSink();
virtual ~DeviceSampleSink();
virtual bool start(int device) = 0;
virtual bool start() = 0;
virtual void stop() = 0;
virtual const QString& getDeviceDescription() const = 0;

View File

@ -449,7 +449,7 @@ DSPDeviceSinkEngine::State DSPDeviceSinkEngine::gotoRunning()
// Start everything
if(!m_deviceSampleSink->start(m_sampleSinkSequence))
if(!m_deviceSampleSink->start())
{
return gotoError("DSPDeviceSinkEngine::gotoRunning: Could not start sample source");
}