| 139 | } |
| 140 | |
| 141 | std::vector<int> Port::getDeviceIds() { |
| 142 | if (!driver) |
| 143 | return {}; |
| 144 | try { |
| 145 | return driver->getDeviceIds(); |
| 146 | } |
| 147 | catch (Exception& e) { |
| 148 | WARN("Audio port could not get device IDs: %s", e.what()); |
| 149 | return {}; |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | int Port::getDeviceId() { |
| 154 | return deviceId; |