1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Lookup sound when need to stop

Instead of loading.
This commit is contained in:
elsid 2020-06-28 22:16:45 +02:00
parent d18f1f8956
commit 0ff5e9bfb9
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

View File

@ -772,7 +772,7 @@ namespace MWSound
if(!mOutput->isInitialized())
return;
Sound_Buffer *sfx = loadSound(Misc::StringUtils::lowerCase(soundId));
Sound_Buffer *sfx = lookupSound(Misc::StringUtils::lowerCase(soundId));
if (!sfx) return;
stopSound(sfx, MWWorld::ConstPtr());
@ -783,7 +783,7 @@ namespace MWSound
if(!mOutput->isInitialized())
return;
Sound_Buffer *sfx = loadSound(Misc::StringUtils::lowerCase(soundId));
Sound_Buffer *sfx = lookupSound(Misc::StringUtils::lowerCase(soundId));
if (!sfx) return;
stopSound(sfx, ptr);