mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 20:53:50 +00:00
stopSound crash fix
This commit is contained in:
parent
67a6a8f5d4
commit
53158d29b1
2 changed files with 3 additions and 1 deletions
|
@ -612,6 +612,7 @@ namespace MWSound
|
|||
|
||||
void SoundManager::stopSound(MWBase::SoundPtr sound)
|
||||
{
|
||||
if (sound.get())
|
||||
mOutput->stopSound(sound);
|
||||
}
|
||||
|
||||
|
|
|
@ -201,6 +201,7 @@ namespace MWSound
|
|||
|
||||
virtual void stopSound(MWBase::SoundPtr sound);
|
||||
///< Stop the given sound from playing
|
||||
/// @note no-op if \a sound is null
|
||||
|
||||
virtual void stopSound3D(const MWWorld::Ptr &reference, const std::string& soundId);
|
||||
///< Stop the given object from playing the given sound,
|
||||
|
|
Loading…
Reference in a new issue