| 467 | } |
| 468 | |
| 469 | void Audio::removeRef(uint32_t handle) { |
| 470 | auto it = _resources.find(handle); |
| 471 | if (it != _resources.end()) { |
| 472 | if (it->second->callback) { |
| 473 | it->second->callback(it->first); |
| 474 | } |
| 475 | _resources.erase(it); |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | bool Audio::isVoicePlaying(uint32_t handle) const { |
| 480 | return _resources.find(handle) != _resources.end(); |
no test coverage detected