diff --git a/plugins/channeltx/modfreedv/freedvmodsettings.cpp b/plugins/channeltx/modfreedv/freedvmodsettings.cpp index 8ec0566af..374a9c585 100644 --- a/plugins/channeltx/modfreedv/freedvmodsettings.cpp +++ b/plugins/channeltx/modfreedv/freedvmodsettings.cpp @@ -203,3 +203,12 @@ int FreeDVModSettings::getLowCutoff(FreeDVMode freeDVMode) break; } } + +int FreeDVModSettings::getModSampleRate(FreeDVMode freeDVMode) +{ + if (freeDVMode == FreeDVModSettings::FreeDVMode2400A) { + return 48000; + } else { + return 8000; + } +} diff --git a/plugins/channeltx/modfreedv/freedvmodsettings.h b/plugins/channeltx/modfreedv/freedvmodsettings.h index 567d04421..16d33b5a1 100644 --- a/plugins/channeltx/modfreedv/freedvmodsettings.h +++ b/plugins/channeltx/modfreedv/freedvmodsettings.h @@ -75,6 +75,7 @@ struct FreeDVModSettings static int getHiCutoff(FreeDVMode freeDVMode); static int getLowCutoff(FreeDVMode freeDVMode); + static int getModSampleRate(FreeDVMode freeDVMode); };