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:
parent
9fd35cfe5c
commit
01bf202ee4
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user