FSK tweaks, minimum bandwidth adjust

This commit is contained in:
Charles J. Cliffe
2015-12-01 00:59:11 -05:00
parent 76d69ffd78
commit 0f8065f48a
12 changed files with 46 additions and 32 deletions
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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;