mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 10:09:41 +00:00
Lookup sound when need to stop
Instead of loading.
This commit is contained in:
parent
d18f1f8956
commit
0ff5e9bfb9
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue