| 200 | } |
| 201 | |
| 202 | int Port::getDeviceNumOutputs(int deviceId) { |
| 203 | if (!driver) |
| 204 | return 0; |
| 205 | try { |
| 206 | return driver->getDeviceNumOutputs(deviceId); |
| 207 | } |
| 208 | catch (Exception& e) { |
| 209 | WARN("Audio port could not get device number of outputs: %s", e.what()); |
| 210 | return 0; |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | std::string Port::getDeviceName(int deviceId) { |
| 215 | if (!driver) |
no test coverage detected