mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-17 13:51:47 -05:00
FreeDV modulator: get modem sample rate from settings
This commit is contained in:
parent
c0e2d2d81f
commit
9cc8c836ef
@ -203,3 +203,12 @@ int FreeDVModSettings::getLowCutoff(FreeDVMode freeDVMode)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int FreeDVModSettings::getModSampleRate(FreeDVMode freeDVMode)
|
||||||
|
{
|
||||||
|
if (freeDVMode == FreeDVModSettings::FreeDVMode2400A) {
|
||||||
|
return 48000;
|
||||||
|
} else {
|
||||||
|
return 8000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -75,6 +75,7 @@ struct FreeDVModSettings
|
|||||||
|
|
||||||
static int getHiCutoff(FreeDVMode freeDVMode);
|
static int getHiCutoff(FreeDVMode freeDVMode);
|
||||||
static int getLowCutoff(FreeDVMode freeDVMode);
|
static int getLowCutoff(FreeDVMode freeDVMode);
|
||||||
|
static int getModSampleRate(FreeDVMode freeDVMode);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user