| 2171 | } |
| 2172 | |
| 2173 | static QString formatAudioBuffer(qsizetype bytes, int sampleRate) |
| 2174 | { |
| 2175 | if (sampleRate <= 0) { |
| 2176 | return QString("%1 bytes").arg(bytes); |
| 2177 | } |
| 2178 | |
| 2179 | const double ms = audioBufferMs(bytes, sampleRate); |
| 2180 | return QString("%1 bytes (%2 ms)").arg(bytes).arg(ms, 0, 'f', 1); |
| 2181 | } |
| 2182 | |
| 2183 | static QString formatMsValue(int value) |
| 2184 | { |
no test coverage detected