| 27 | } |
| 28 | |
| 29 | int ModemUSB::checkSampleRate(long long sampleRate, int /* audioSampleRate */) { |
| 30 | if (sampleRate < MIN_BANDWIDTH) { |
| 31 | return MIN_BANDWIDTH; |
| 32 | } |
| 33 | if (sampleRate % 2 == 0) { |
| 34 | return (int)sampleRate; |
| 35 | } |
| 36 | return (int)(sampleRate+1); |
| 37 | } |
| 38 | |
| 39 | int ModemUSB::getDefaultSampleRate() { |
| 40 | return 5400; |
nothing calls this directly
no outgoing calls
no test coverage detected