LimeSDR output: removed useless update of sample rate

pull/60/head
f4exb 2017-08-07 23:22:29 +02:00
rodzic 03df4cf6dd
commit 54a6bc6b62
3 zmienionych plików z 1 dodań i 25 usunięć

Wyświetl plik

@ -620,23 +620,6 @@ bool LimeSDROutput::applySettings(const LimeSDROutputSettings& settings, bool fo
m_settings.m_devSampleRate,
1<<m_settings.m_log2HardInterp);
}
if (m_limeSDROutputThread != 0)
{
m_limeSDROutputThread->setDeviceSampleRate(m_settings.m_devSampleRate);
}
const std::vector<DeviceSinkAPI*>& sinkBuddies = m_deviceAPI->getSinkBuddies();
std::vector<DeviceSinkAPI*>::const_iterator itSink = sinkBuddies.begin();
for (; itSink != sinkBuddies.end(); ++itSink)
{
DeviceLimeSDRShared *buddySharedPtr = (DeviceLimeSDRShared *) (*itSink)->getBuddySharedPtr();
if (buddySharedPtr->m_thread) {
buddySharedPtr->m_thread->setDeviceSampleRate(m_settings.m_devSampleRate);
}
}
}
}

Wyświetl plik

@ -24,7 +24,6 @@ LimeSDROutputThread::LimeSDROutputThread(lms_stream_t* stream, SampleSourceFifo*
m_running(false),
m_stream(stream),
m_sampleFifo(sampleFifo),
m_sampleRate(5000000),
m_log2Interp(0),
m_fcPos(LimeSDROutputSettings::FC_POS_CENTER)
{
@ -84,11 +83,6 @@ void LimeSDROutputThread::run()
qDebug("LimeSDROutputThread::run: stream started");
}
// count = 0;
// msleep = LIMESDROUTPUT_BLOCKSIZE/(m_sampleRate/1e6f);
// mdelta = msleep/100;
// msleep = (3*msleep)/4; // to start faster
while (m_running)
{
callback(m_buf, LIMESDROUTPUT_BLOCKSIZE);

Wyświetl plik

@ -39,7 +39,7 @@ public:
virtual void startWork();
virtual void stopWork();
virtual void setDeviceSampleRate(int sampleRate) { m_sampleRate = sampleRate; }
virtual void setDeviceSampleRate(int __attribute__((unused)) sampleRate) {}
void setLog2Interpolation(unsigned int log2_ioterp);
void setFcPos(int fcPos);
@ -52,7 +52,6 @@ private:
qint16 m_buf[2*LIMESDROUTPUT_BLOCKSIZE]; //must hold I+Q values of each sample hence 2xcomplex size
SampleSourceFifo* m_sampleFifo;
int m_sampleRate;
unsigned int m_log2Interp; // soft decimation
int m_fcPos;