SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <sdrplaythread.h>
Inherits QThread.
Public Member Functions | |
SDRPlayThread (mirisdr_dev_t *dev, SampleSinkFifo *sampleFifo, QObject *parent=NULL) | |
~SDRPlayThread () | |
void | startWork () |
void | stopWork () |
void | setSamplerate (int samplerate) |
void | setLog2Decimation (unsigned int log2_decim) |
void | setFcPos (int fcPos) |
Private Member Functions | |
void | run () |
void | callback (const qint16 *buf, qint32 len) |
Static Private Member Functions | |
static void | callbackHelper (unsigned char *buf, uint32_t len, void *ctx) |
Private Attributes | |
QMutex | m_startWaitMutex |
QWaitCondition | m_startWaiter |
bool | m_running |
mirisdr_dev_t * | m_dev |
SampleVector | m_convertBuffer |
SampleSinkFifo * | m_sampleFifo |
int | m_samplerate |
unsigned int | m_log2Decim |
int | m_fcPos |
Decimators< qint32, qint16, SDR_RX_SAMP_SZ, 12 > | m_decimators |
Definition at line 30 of file sdrplaythread.h.
SDRPlayThread::SDRPlayThread | ( | mirisdr_dev_t * | dev, |
SampleSinkFifo * | sampleFifo, | ||
QObject * | parent = NULL |
||
) |
Definition at line 23 of file sdrplaythread.cpp.
SDRPlayThread::~SDRPlayThread | ( | ) |
Definition at line 35 of file sdrplaythread.cpp.
References stopWork().
|
private |
Definition at line 95 of file sdrplaythread.cpp.
References Decimators< StorageType, T, SdrBits, InputBits >::decimate1(), Decimators< StorageType, T, SdrBits, InputBits >::decimate16_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate16_inf(), Decimators< StorageType, T, SdrBits, InputBits >::decimate16_sup(), Decimators< StorageType, T, SdrBits, InputBits >::decimate2_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate2_inf(), Decimators< StorageType, T, SdrBits, InputBits >::decimate2_sup(), Decimators< StorageType, T, SdrBits, InputBits >::decimate32_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate32_inf(), Decimators< StorageType, T, SdrBits, InputBits >::decimate32_sup(), Decimators< StorageType, T, SdrBits, InputBits >::decimate4_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate4_inf(), Decimators< StorageType, T, SdrBits, InputBits >::decimate4_sup(), Decimators< StorageType, T, SdrBits, InputBits >::decimate64_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate64_inf(), Decimators< StorageType, T, SdrBits, InputBits >::decimate64_sup(), Decimators< StorageType, T, SdrBits, InputBits >::decimate8_cen(), Decimators< StorageType, T, SdrBits, InputBits >::decimate8_inf(), Decimators< StorageType, T, SdrBits, InputBits >::decimate8_sup(), m_convertBuffer, m_decimators, m_dev, m_fcPos, m_log2Decim, m_running, m_sampleFifo, and SampleSinkFifo::write().
Referenced by callbackHelper().
|
staticprivate |
Definition at line 89 of file sdrplaythread.cpp.
References callback().
Referenced by run().
|
private |
Definition at line 70 of file sdrplaythread.cpp.
References callbackHelper(), m_dev, m_running, m_startWaiter, and SDRPLAY_INIT_NBSAMPLES.
void SDRPlayThread::setFcPos | ( | int | fcPos | ) |
Definition at line 65 of file sdrplaythread.cpp.
References m_fcPos.
Referenced by SDRPlayInput::applySettings(), and SDRPlayInput::start().
void SDRPlayThread::setLog2Decimation | ( | unsigned int | log2_decim | ) |
Definition at line 60 of file sdrplaythread.cpp.
References m_log2Decim.
Referenced by SDRPlayInput::applySettings(), and SDRPlayInput::start().
void SDRPlayThread::setSamplerate | ( | int | samplerate | ) |
void SDRPlayThread::startWork | ( | ) |
Definition at line 40 of file sdrplaythread.cpp.
References m_running, m_startWaiter, and m_startWaitMutex.
Referenced by SDRPlayInput::start().
void SDRPlayThread::stopWork | ( | ) |
Definition at line 49 of file sdrplaythread.cpp.
References m_running.
Referenced by SDRPlayInput::stop(), and ~SDRPlayThread().
|
private |
Definition at line 49 of file sdrplaythread.h.
Referenced by callback().
|
private |
Definition at line 56 of file sdrplaythread.h.
Referenced by callback().
|
private |
Definition at line 48 of file sdrplaythread.h.
Referenced by callback(), and run().
|
private |
Definition at line 54 of file sdrplaythread.h.
Referenced by callback(), and setFcPos().
|
private |
Definition at line 53 of file sdrplaythread.h.
Referenced by callback(), and setLog2Decimation().
|
private |
Definition at line 46 of file sdrplaythread.h.
Referenced by callback(), run(), startWork(), and stopWork().
|
private |
Definition at line 50 of file sdrplaythread.h.
Referenced by callback().
|
private |
Definition at line 52 of file sdrplaythread.h.
Referenced by setSamplerate().
|
private |
Definition at line 45 of file sdrplaythread.h.
Referenced by run(), and startWork().
|
private |
Definition at line 44 of file sdrplaythread.h.
Referenced by startWork().