1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00

FreeDV modulator: get modem sample rate from settings

This commit is contained in:
f4exb 2019-02-24 03:46:04 +01:00
parent c0e2d2d81f
commit 9cc8c836ef
2 changed files with 10 additions and 0 deletions

View File

@ -203,3 +203,12 @@ int FreeDVModSettings::getLowCutoff(FreeDVMode freeDVMode)
break;
}
}
int FreeDVModSettings::getModSampleRate(FreeDVMode freeDVMode)
{
if (freeDVMode == FreeDVModSettings::FreeDVMode2400A) {
return 48000;
} else {
return 8000;
}
}

View File

@ -75,6 +75,7 @@ struct FreeDVModSettings
static int getHiCutoff(FreeDVMode freeDVMode);
static int getLowCutoff(FreeDVMode freeDVMode);
static int getModSampleRate(FreeDVMode freeDVMode);
};