kopia lustrzana https://github.com/f4exb/sdrangel
Refactoring: removed device parameter from all start() methods in sample sink plugins
rodzic
b8623c90ce
commit
414a7ccd87
|
@ -108,7 +108,7 @@ bool BladerfOutput::openDevice()
|
|||
return true;
|
||||
}
|
||||
|
||||
bool BladerfOutput::start(int device)
|
||||
bool BladerfOutput::start()
|
||||
{
|
||||
// QMutexLocker mutexLocker(&m_mutex);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -95,7 +95,7 @@ bool HackRFOutput::openDevice()
|
|||
return true;
|
||||
}
|
||||
|
||||
bool HackRFOutput::start(int device)
|
||||
bool HackRFOutput::start()
|
||||
{
|
||||
if (!m_dev) {
|
||||
return false;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue