| 188 | } |
| 189 | |
| 190 | int Port::getDeviceNumInputs(int deviceId) { |
| 191 | if (!driver) |
| 192 | return 0; |
| 193 | try { |
| 194 | return driver->getDeviceNumInputs(deviceId); |
| 195 | } |
| 196 | catch (Exception& e) { |
| 197 | WARN("Audio port could not get device number of inputs: %s", e.what()); |
| 198 | return 0; |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | int Port::getDeviceNumOutputs(int deviceId) { |
| 203 | if (!driver) |
no test coverage detected