| 271 | } |
| 272 | |
| 273 | int Port::getBlockSize() { |
| 274 | if (!device) |
| 275 | return 0; |
| 276 | try { |
| 277 | return device->getBlockSize(); |
| 278 | } |
| 279 | catch (Exception& e) { |
| 280 | WARN("Audio port could not get device block size: %s", e.what()); |
| 281 | return 0; |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | void Port::setBlockSize(int blockSize) { |
| 286 | if (!device) |
no test coverage detected