| 91 | } |
| 92 | |
| 93 | static void applyPan(uint32_t sourceId, int32_t pan) |
| 94 | { |
| 95 | auto p = panToPosition(pan); |
| 96 | alSourcef(sourceId, AL_ROLLOFF_FACTOR, 0.0f); |
| 97 | alSourcei(sourceId, AL_SOURCE_RELATIVE, AL_TRUE); |
| 98 | alSource3f(sourceId, AL_POSITION, p, 0.0f, -std::sqrt(1.0f - p * p)); |
| 99 | } |
| 100 | |
| 101 | bool openDevice(const std::string& name) |
| 102 | { |
no test coverage detected