1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

WFM demod: fixed requiredBW method

This commit is contained in:
f4exb 2017-01-08 19:42:26 +01:00
parent 9fd35cfe5c
commit 01bf202ee4
2 changed files with 9 additions and 10 deletions

View File

@ -24,16 +24,6 @@ const int WFMDemodGUI::m_rfBW[] = {
};
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* gui = new WFMDemodGUI(pluginAPI, deviceAPI);

View File

@ -73,6 +73,15 @@ private:
void leaveEvent(QEvent*);
void enterEvent(QEvent*);
static int requiredBW(int rfBW)
{
if (rfBW <= 48000) {
return 48000;
} else {
return (3*rfBW)/2;
}
}
};
#endif // INCLUDE_WFMDEMODGUI_H