1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-04-04 18:48:34 -04:00

HackRF output: removed useless method to set samplerate in the thread

This commit is contained in:
f4exb 2017-08-08 13:12:16 +02:00
parent 8297df0cd9
commit 287bf8120d
3 changed files with 2 additions and 15 deletions

View File

@ -113,7 +113,6 @@ bool HackRFOutput::start()
// mutexLocker.unlock();
applySettings(m_settings, true);
m_hackRFThread->setSamplerate(m_settings.m_devSampleRate);
m_hackRFThread->setLog2Interpolation(m_settings.m_log2Interp);
m_hackRFThread->startWork();
@ -244,12 +243,8 @@ bool HackRFOutput::applySettings(const HackRFOutputSettings& settings, bool forc
}
else
{
if (m_hackRFThread != 0)
{
qDebug("HackRFOutput::applySettings: sample rate set to %llu S/s",
settings.m_devSampleRate);
m_hackRFThread->setSamplerate(settings.m_devSampleRate);
}
qDebug("HackRFOutput::applySettings: sample rate set to %llu S/s",
settings.m_devSampleRate);
}
}
}

View File

@ -27,7 +27,6 @@ HackRFOutputThread::HackRFOutputThread(hackrf_device* dev, SampleSourceFifo* sam
m_running(false),
m_dev(dev),
m_sampleFifo(sampleFifo),
m_samplerate(10),
m_log2Interp(0)
{
}
@ -53,11 +52,6 @@ void HackRFOutputThread::stopWork()
wait();
}
void HackRFOutputThread::setSamplerate(uint32_t samplerate)
{
m_samplerate = samplerate;
}
void HackRFOutputThread::setLog2Interpolation(unsigned int log2Interp)
{
m_log2Interp = log2Interp;

View File

@ -36,7 +36,6 @@ public:
void startWork();
void stopWork();
void setSamplerate(uint32_t samplerate);
void setLog2Interpolation(unsigned int log2_interp);
private:
@ -48,7 +47,6 @@ private:
qint8 m_buf[2*HACKRF_BLOCKSIZE];
SampleSourceFifo* m_sampleFifo;
int m_samplerate;
unsigned int m_log2Interp;
Interpolators<qint8, SDR_SAMP_SZ, 8> m_interpolators;