mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-07-31 05:02:24 -04:00
Test source: limit FM deviation to half the sample rate
This commit is contained in:
parent
1d9ab62a4a
commit
6f074b39fa
@ -173,7 +173,7 @@ void TestSourceThread::setAMModulation(float amModulation)
|
|||||||
void TestSourceThread::setFMDeviation(float deviation)
|
void TestSourceThread::setFMDeviation(float deviation)
|
||||||
{
|
{
|
||||||
float fmDeviationUnit = deviation / (float) m_samplerate;
|
float fmDeviationUnit = deviation / (float) m_samplerate;
|
||||||
m_fmDeviationUnit = fmDeviationUnit < 0.0f ? 0.0f : fmDeviationUnit > 1.0f ? 1.0f : fmDeviationUnit;
|
m_fmDeviationUnit = fmDeviationUnit < 0.0f ? 0.0f : fmDeviationUnit > 0.5f ? 0.5f : fmDeviationUnit;
|
||||||
qDebug("TestSourceThread::setFMDeviation: m_fmDeviationUnit: %f", m_fmDeviationUnit);
|
qDebug("TestSourceThread::setFMDeviation: m_fmDeviationUnit: %f", m_fmDeviationUnit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user