mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-23 08:08:39 -04:00
FSK tweaks, minimum bandwidth adjust
This commit is contained in:
@@ -20,8 +20,8 @@ ModemLSB::~ModemLSB() {
|
||||
}
|
||||
|
||||
int ModemLSB::checkSampleRate(long long sampleRate, int audioSampleRate) {
|
||||
if (sampleRate < 1500) {
|
||||
return 1500;
|
||||
if (sampleRate < MIN_BANDWIDTH) {
|
||||
return MIN_BANDWIDTH;
|
||||
}
|
||||
if (sampleRate % 2 == 0) {
|
||||
return sampleRate;
|
||||
|
||||
@@ -20,8 +20,8 @@ ModemUSB::~ModemUSB() {
|
||||
}
|
||||
|
||||
int ModemUSB::checkSampleRate(long long sampleRate, int audioSampleRate) {
|
||||
if (sampleRate < 1500) {
|
||||
return 1500;
|
||||
if (sampleRate < MIN_BANDWIDTH) {
|
||||
return MIN_BANDWIDTH;
|
||||
}
|
||||
if (sampleRate % 2 == 0) {
|
||||
return sampleRate;
|
||||
|
||||
Reference in New Issue
Block a user