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 <audioresampler.h>
Public Member Functions | |
AudioResampler () | |
~AudioResampler () | |
void | setDecimation (uint32_t decimation) |
uint32_t | getDecimation () const |
void | setAudioFilters (int srHigh, int srLow, int fcLow, int fcHigh, float gain=1.0f) |
bool | downSample (qint16 sampleIn, qint16 &sampleOut) |
bool | upSample (qint16 sampleIn, qint16 &sampleOut) |
Private Attributes | |
AudioFilter | m_audioFilter |
uint32_t | m_decimation |
uint32_t | m_decimationCount |
Definition at line 25 of file audioresampler.h.
AudioResampler::AudioResampler | ( | ) |
Definition at line 21 of file audioresampler.cpp.
AudioResampler::~AudioResampler | ( | ) |
Definition at line 26 of file audioresampler.cpp.
bool AudioResampler::downSample | ( | qint16 | sampleIn, |
qint16 & | sampleOut | ||
) |
Definition at line 47 of file audioresampler.cpp.
References m_audioFilter, m_decimation, m_decimationCount, and AudioFilter::run().
Referenced by getDecimation(), and FreeDVMod::pullAF().
|
inline |
Definition at line 32 of file audioresampler.h.
References downSample(), m_decimation, setAudioFilters(), and upSample().
Referenced by FreeDVDemod::pushSampleToDV().
void AudioResampler::setAudioFilters | ( | int | srHigh, |
int | srLow, | ||
int | fcLow, | ||
int | fcHigh, | ||
float | gain = 1.0f |
||
) |
Definition at line 34 of file audioresampler.cpp.
References m_audioFilter, and AudioFilter::setDecimFilters().
Referenced by FreeDVMod::applyAudioSampleRate(), FreeDVDemod::applyAudioSampleRate(), and getDecimation().
void AudioResampler::setDecimation | ( | uint32_t | decimation | ) |
Definition at line 29 of file audioresampler.cpp.
References decimation(), and m_decimation.
Referenced by FreeDVMod::applyAudioSampleRate(), and FreeDVDemod::applyAudioSampleRate().
bool AudioResampler::upSample | ( | qint16 | sampleIn, |
qint16 & | sampleOut | ||
) |
Definition at line 69 of file audioresampler.cpp.
References m_audioFilter, m_decimation, m_decimationCount, and AudioFilter::run().
Referenced by getDecimation(), and FreeDVDemod::pushSampleToDV().
|
private |
Definition at line 38 of file audioresampler.h.
Referenced by downSample(), setAudioFilters(), and upSample().
|
private |
Definition at line 39 of file audioresampler.h.
Referenced by downSample(), getDecimation(), setDecimation(), and upSample().
|
private |
Definition at line 40 of file audioresampler.h.
Referenced by downSample(), and upSample().