| 17 | } |
| 18 | |
| 19 | int ModemFSK::checkSampleRate(long long sampleRate, int /* audioSampleRate */) { |
| 20 | double minSps = pow(2.0,bps); |
| 21 | double nextSps = (double(sampleRate) / double(sps)); |
| 22 | if (nextSps < minSps) { |
| 23 | return 2 * bps * sps; |
| 24 | } else { |
| 25 | return (int)sampleRate; |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | int ModemFSK::getDefaultSampleRate() { |
| 30 | return 19200; |
nothing calls this directly
no outgoing calls
no test coverage detected