mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 17:58:43 -05:00
SSB modulator: fixed saturation when going DSB
This commit is contained in:
parent
090684d6e4
commit
d49ff21985
@ -240,7 +240,7 @@ void SSBMod::pullAF(Complex& sample)
|
|||||||
case SSBModInputTone:
|
case SSBModInputTone:
|
||||||
if (m_running.m_dsb)
|
if (m_running.m_dsb)
|
||||||
{
|
{
|
||||||
Real t = m_toneNco.next();
|
Real t = m_toneNco.next()/1.25;
|
||||||
sample.real(t);
|
sample.real(t);
|
||||||
sample.imag(t);
|
sample.imag(t);
|
||||||
}
|
}
|
||||||
@ -378,7 +378,7 @@ void SSBMod::pullAF(Complex& sample)
|
|||||||
{
|
{
|
||||||
if (m_running.m_dsb)
|
if (m_running.m_dsb)
|
||||||
{
|
{
|
||||||
Real t = m_toneNco.next() * fadeFactor;
|
Real t = (m_toneNco.next() * fadeFactor)/1.25;
|
||||||
sample.real(t);
|
sample.real(t);
|
||||||
sample.imag(t);
|
sample.imag(t);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user