| 212 | } |
| 213 | |
| 214 | std::string Port::getDeviceName(int deviceId) { |
| 215 | if (!driver) |
| 216 | return ""; |
| 217 | try { |
| 218 | return driver->getDeviceName(deviceId); |
| 219 | } |
| 220 | catch (Exception& e) { |
| 221 | WARN("Audio port could not get device name: %s", e.what()); |
| 222 | return 0; |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | std::set<float> Port::getSampleRates() { |
| 227 | if (!device) |