mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-10-01 01:06:35 -04:00
respect usb flag for ssbmod REST API calls
This commit is contained in:
parent
282be4e7c9
commit
9a4f912102
@ -684,17 +684,6 @@ void SSBMod::applyAudioSampleRate(int sampleRate)
|
|||||||
float lowCutoff = m_settings.m_lowCutoff;
|
float lowCutoff = m_settings.m_lowCutoff;
|
||||||
bool usb = m_settings.m_usb;
|
bool usb = m_settings.m_usb;
|
||||||
|
|
||||||
if (band < 0) // negative means LSB
|
|
||||||
{
|
|
||||||
band = -band; // turn to positive
|
|
||||||
lowCutoff = -lowCutoff;
|
|
||||||
usb = false; // and take note of side band
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
usb = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (band < 100.0f) // at least 100 Hz
|
if (band < 100.0f) // at least 100 Hz
|
||||||
{
|
{
|
||||||
band = 100.0f;
|
band = 100.0f;
|
||||||
@ -838,17 +827,6 @@ void SSBMod::applySettings(const SSBModSettings& settings, bool force)
|
|||||||
if ((settings.m_bandwidth != m_settings.m_bandwidth) ||
|
if ((settings.m_bandwidth != m_settings.m_bandwidth) ||
|
||||||
(settings.m_lowCutoff != m_settings.m_lowCutoff) || force)
|
(settings.m_lowCutoff != m_settings.m_lowCutoff) || force)
|
||||||
{
|
{
|
||||||
if (band < 0) // negative means LSB
|
|
||||||
{
|
|
||||||
band = -band; // turn to positive
|
|
||||||
lowCutoff = -lowCutoff;
|
|
||||||
usb = false; // and take note of side band
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
usb = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (band < 100.0f) // at least 100 Hz
|
if (band < 100.0f) // at least 100 Hz
|
||||||
{
|
{
|
||||||
band = 100.0f;
|
band = 100.0f;
|
||||||
|
Loading…
Reference in New Issue
Block a user