mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-25 03:24:18 -04:00
Modulator plugins with configurable audio: fixed audio sample rate handling
This commit is contained in:
@@ -364,6 +364,12 @@ void FreeDVModSource::calculateLevel(qint16& sample)
|
||||
|
||||
void FreeDVModSource::applyAudioSampleRate(unsigned int sampleRate)
|
||||
{
|
||||
if (sampleRate < 0)
|
||||
{
|
||||
qWarning("FreeDVModSource::applyAudioSampleRate: invalid sample rate %d", sampleRate);
|
||||
return;
|
||||
}
|
||||
|
||||
qDebug("FreeDVModSource::applyAudioSampleRate: %d", sampleRate);
|
||||
// TODO: put up simple IIR interpolator when sampleRate < m_modemSampleRate
|
||||
|
||||
|
||||
Reference in New Issue
Block a user