| 224 | } |
| 225 | |
| 226 | std::set<float> Port::getSampleRates() { |
| 227 | if (!device) |
| 228 | return {}; |
| 229 | try { |
| 230 | return device->getSampleRates(); |
| 231 | } |
| 232 | catch (Exception& e) { |
| 233 | WARN("Audio port could not get device sample rates: %s", e.what()); |
| 234 | return {}; |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | float Port::getSampleRate() { |
| 239 | if (!device) |
no test coverage detected