mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-03 21:57:51 -04:00
HackRF output: removed useless method to set samplerate in the thread
This commit is contained in:
parent
8297df0cd9
commit
287bf8120d
@ -113,7 +113,6 @@ bool HackRFOutput::start()
|
|||||||
// mutexLocker.unlock();
|
// mutexLocker.unlock();
|
||||||
|
|
||||||
applySettings(m_settings, true);
|
applySettings(m_settings, true);
|
||||||
m_hackRFThread->setSamplerate(m_settings.m_devSampleRate);
|
|
||||||
m_hackRFThread->setLog2Interpolation(m_settings.m_log2Interp);
|
m_hackRFThread->setLog2Interpolation(m_settings.m_log2Interp);
|
||||||
|
|
||||||
m_hackRFThread->startWork();
|
m_hackRFThread->startWork();
|
||||||
@ -244,12 +243,8 @@ bool HackRFOutput::applySettings(const HackRFOutputSettings& settings, bool forc
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (m_hackRFThread != 0)
|
qDebug("HackRFOutput::applySettings: sample rate set to %llu S/s",
|
||||||
{
|
settings.m_devSampleRate);
|
||||||
qDebug("HackRFOutput::applySettings: sample rate set to %llu S/s",
|
|
||||||
settings.m_devSampleRate);
|
|
||||||
m_hackRFThread->setSamplerate(settings.m_devSampleRate);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,6 @@ HackRFOutputThread::HackRFOutputThread(hackrf_device* dev, SampleSourceFifo* sam
|
|||||||
m_running(false),
|
m_running(false),
|
||||||
m_dev(dev),
|
m_dev(dev),
|
||||||
m_sampleFifo(sampleFifo),
|
m_sampleFifo(sampleFifo),
|
||||||
m_samplerate(10),
|
|
||||||
m_log2Interp(0)
|
m_log2Interp(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -53,11 +52,6 @@ void HackRFOutputThread::stopWork()
|
|||||||
wait();
|
wait();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HackRFOutputThread::setSamplerate(uint32_t samplerate)
|
|
||||||
{
|
|
||||||
m_samplerate = samplerate;
|
|
||||||
}
|
|
||||||
|
|
||||||
void HackRFOutputThread::setLog2Interpolation(unsigned int log2Interp)
|
void HackRFOutputThread::setLog2Interpolation(unsigned int log2Interp)
|
||||||
{
|
{
|
||||||
m_log2Interp = log2Interp;
|
m_log2Interp = log2Interp;
|
||||||
|
@ -36,7 +36,6 @@ public:
|
|||||||
|
|
||||||
void startWork();
|
void startWork();
|
||||||
void stopWork();
|
void stopWork();
|
||||||
void setSamplerate(uint32_t samplerate);
|
|
||||||
void setLog2Interpolation(unsigned int log2_interp);
|
void setLog2Interpolation(unsigned int log2_interp);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -48,7 +47,6 @@ private:
|
|||||||
qint8 m_buf[2*HACKRF_BLOCKSIZE];
|
qint8 m_buf[2*HACKRF_BLOCKSIZE];
|
||||||
SampleSourceFifo* m_sampleFifo;
|
SampleSourceFifo* m_sampleFifo;
|
||||||
|
|
||||||
int m_samplerate;
|
|
||||||
unsigned int m_log2Interp;
|
unsigned int m_log2Interp;
|
||||||
|
|
||||||
Interpolators<qint8, SDR_SAMP_SZ, 8> m_interpolators;
|
Interpolators<qint8, SDR_SAMP_SZ, 8> m_interpolators;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user