mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-06-25 05:25:27 -04:00
WFM demod: fixed requiredBW method
This commit is contained in:
parent
9fd35cfe5c
commit
01bf202ee4
@ -24,16 +24,6 @@ const int WFMDemodGUI::m_rfBW[] = {
|
|||||||
};
|
};
|
||||||
const int WFMDemodGUI::m_nbRfBW = 14;
|
const int WFMDemodGUI::m_nbRfBW = 14;
|
||||||
|
|
||||||
int requiredBW(int rfBW)
|
|
||||||
{
|
|
||||||
if (rfBW <= 48000)
|
|
||||||
return 48000;
|
|
||||||
else if (rfBW < 100000)
|
|
||||||
return 96000;
|
|
||||||
else
|
|
||||||
return 384000;
|
|
||||||
}
|
|
||||||
|
|
||||||
WFMDemodGUI* WFMDemodGUI::create(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI)
|
WFMDemodGUI* WFMDemodGUI::create(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI)
|
||||||
{
|
{
|
||||||
WFMDemodGUI* gui = new WFMDemodGUI(pluginAPI, deviceAPI);
|
WFMDemodGUI* gui = new WFMDemodGUI(pluginAPI, deviceAPI);
|
||||||
|
@ -73,6 +73,15 @@ private:
|
|||||||
|
|
||||||
void leaveEvent(QEvent*);
|
void leaveEvent(QEvent*);
|
||||||
void enterEvent(QEvent*);
|
void enterEvent(QEvent*);
|
||||||
|
|
||||||
|
static int requiredBW(int rfBW)
|
||||||
|
{
|
||||||
|
if (rfBW <= 48000) {
|
||||||
|
return 48000;
|
||||||
|
} else {
|
||||||
|
return (3*rfBW)/2;
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // INCLUDE_WFMDEMODGUI_H
|
#endif // INCLUDE_WFMDEMODGUI_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user