| 430 | } |
| 431 | |
| 432 | void setAttributes(AudioHandle handle, const AudioAttributes& attribs) |
| 433 | { |
| 434 | auto* inst = getInstance(handle); |
| 435 | if (inst == nullptr) |
| 436 | { |
| 437 | return; |
| 438 | } |
| 439 | inst->attribs = attribs; |
| 440 | applyVolume(*inst); |
| 441 | applyPitch(*inst); |
| 442 | applyPan(inst->sourceId, attribs.pan); |
| 443 | alSourcei(inst->sourceId, AL_LOOPING, attribs.loop ? AL_TRUE : AL_FALSE); |
| 444 | } |
| 445 | |
| 446 | // Channel volume control |
| 447 |
nothing calls this directly
no test coverage detected