diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-03-21 16:04:33 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-03-21 19:36:44 +0800 |
commit | 2fb48eb9be6df00c3baed955fd84f4d8a1ea1d9a (patch) | |
tree | b6ba5ff2c3ebc24477e3c6d701f91672c7499132 /indra/llaudio | |
parent | 0cdb7d97f67b3a67097e56e71021cb6120ec8a8b (diff) | |
parent | 895a6739d3d02e11750e9ada72b730d02998d4c0 (diff) |
Merge tag 'Second_Life_Release#895a6739-2025.03' into 2025.03
Diffstat (limited to 'indra/llaudio')
-rw-r--r-- | indra/llaudio/llaudioengine_openal.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llaudio/llaudioengine_openal.cpp b/indra/llaudio/llaudioengine_openal.cpp index 18d682b554..755547bfaa 100644 --- a/indra/llaudio/llaudioengine_openal.cpp +++ b/indra/llaudio/llaudioengine_openal.cpp @@ -79,7 +79,7 @@ bool LLAudioEngine_OpenAL::init(void* userdata, const std::string &app_title) ALCdevice *device = alcGetContextsDevice(alcGetCurrentContext()); alcGetIntegerv(device, ALC_MAJOR_VERSION, 1, &major); - alcGetIntegerv(device, ALC_MAJOR_VERSION, 1, &minor); + alcGetIntegerv(device, ALC_MINOR_VERSION, 1, &minor); LL_INFOS() << "ALC version: " << major << "." << minor << LL_ENDL; LL_INFOS() << "ALC default device: " @@ -190,6 +190,8 @@ LLAudioChannelOpenAL::~LLAudioChannelOpenAL() void LLAudioChannelOpenAL::cleanup() { alSourceStop(mALSource); + alSourcei(mALSource, AL_BUFFER, AL_NONE); + mCurrentBufferp = NULL; } |