|
|
@ -747,6 +747,9 @@ namespace MWSound
|
|
|
|
|
|
|
|
|
|
|
|
void SoundManager::stopSound(const std::string& soundId)
|
|
|
|
void SoundManager::stopSound(const std::string& soundId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if(!mOutput->isInitialized())
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
Sound_Buffer *sfx = loadSound(Misc::StringUtils::lowerCase(soundId));
|
|
|
|
Sound_Buffer *sfx = loadSound(Misc::StringUtils::lowerCase(soundId));
|
|
|
|
if (!sfx) return;
|
|
|
|
if (!sfx) return;
|
|
|
|
|
|
|
|
|
|
|
@ -755,6 +758,9 @@ namespace MWSound
|
|
|
|
|
|
|
|
|
|
|
|
void SoundManager::stopSound3D(const MWWorld::ConstPtr &ptr, const std::string& soundId)
|
|
|
|
void SoundManager::stopSound3D(const MWWorld::ConstPtr &ptr, const std::string& soundId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if(!mOutput->isInitialized())
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
Sound_Buffer *sfx = loadSound(Misc::StringUtils::lowerCase(soundId));
|
|
|
|
Sound_Buffer *sfx = loadSound(Misc::StringUtils::lowerCase(soundId));
|
|
|
|
if (!sfx) return;
|
|
|
|
if (!sfx) return;
|
|
|
|
|
|
|
|
|
|
|
|