| 397 | // Attribute control |
| 398 | |
| 399 | void setVolume(AudioHandle handle, int32_t volume) |
| 400 | { |
| 401 | auto* inst = getInstance(handle); |
| 402 | if (inst == nullptr) |
| 403 | { |
| 404 | return; |
| 405 | } |
| 406 | inst->attribs.volume = volume; |
| 407 | applyVolume(*inst); |
| 408 | } |
| 409 | |
| 410 | void setPan(AudioHandle handle, int32_t pan) |
| 411 | { |
no test coverage detected