mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
added cell-wide stopSound function
This commit is contained in:
parent
1d91ac9d9e
commit
0a8d0fed40
@ -120,9 +120,14 @@ namespace MWSound
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void stopSound (MWWorld::Ptr::CellStore *cell)
|
||||||
|
{
|
||||||
|
// Note to Nico: You can get the cell of a Ptr via the getCell function. Just iterate over all
|
||||||
|
// sounds and remove those with matching cell.
|
||||||
|
}
|
||||||
|
|
||||||
bool SoundManager::getSoundPlaying (MWWorld::Ptr reference, const std::string& soundId) const
|
bool SoundManager::getSoundPlaying (MWWorld::Ptr reference, const std::string& soundId) const
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,6 +47,9 @@ namespace MWSound
|
|||||||
///< Stop the given object from playing the given sound, If no soundId is given,
|
///< Stop the given object from playing the given sound, If no soundId is given,
|
||||||
/// all sounds for this reference will stop.
|
/// all sounds for this reference will stop.
|
||||||
|
|
||||||
|
void stopSound (MWWorld::Ptr::CellStore *cell);
|
||||||
|
///< Stop all sounds for the given cell.
|
||||||
|
|
||||||
bool getSoundPlaying (MWWorld::Ptr reference, const std::string& soundId) const;
|
bool getSoundPlaying (MWWorld::Ptr reference, const std::string& soundId) const;
|
||||||
///< Is the given sound currently playing on the given object?
|
///< Is the given sound currently playing on the given object?
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user