| 2212 | } |
| 2213 | |
| 2214 | static QString formatFeedRate(double hz, int streamCount = 1) |
| 2215 | { |
| 2216 | if (hz <= 0.0) { |
| 2217 | return "Waiting for audio"; |
| 2218 | } |
| 2219 | QString suffix; |
| 2220 | if (streamCount > 1) { |
| 2221 | suffix = " avg / stream"; |
| 2222 | } |
| 2223 | if (hz >= 1000.0) { |
| 2224 | return QString("%1 kHz%2").arg(hz / 1000.0, 0, 'f', 1).arg(suffix); |
| 2225 | } |
| 2226 | return QString("%1 Hz%2").arg(hz, 0, 'f', 1).arg(suffix); |
| 2227 | } |
| 2228 | |
| 2229 | static QString formatFeedDeficit(double deficitMs) |
| 2230 | { |
no outgoing calls
no test coverage detected