mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-22 09:07:05 +02:00
Use new AL_SOFT_direct_channels_remix extension
This commit is contained in:
parent
3bd34fcff0
commit
0881e5b20d
1 changed files with 3 additions and 0 deletions
|
@ -321,6 +321,9 @@ void Mixer::Track::createStream(AudioMsgId::Type type) {
|
|||
alSourcei(stream.source, AL_LOOPING, 0);
|
||||
alSourcei(stream.source, AL_SOURCE_RELATIVE, 1);
|
||||
alSourcei(stream.source, AL_ROLLOFF_FACTOR, 0);
|
||||
if (alIsExtensionPresent("AL_SOFT_direct_channels_remix")) {
|
||||
alSourcei(stream.source, alGetEnumValue("AL_DIRECT_CHANNELS_SOFT"), 2);
|
||||
}
|
||||
alGenBuffers(3, stream.buffers);
|
||||
if (speedEffect) {
|
||||
applySourceSpeedEffect();
|
||||
|
|
Loading…
Add table
Reference in a new issue