|
|
|
@ -14,8 +14,6 @@
|
|
|
|
|
|
|
|
|
|
#include "../mwbase/soundmanager.hpp"
|
|
|
|
|
|
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
|
|
|
|
|
namespace MWSound
|
|
|
|
|
{
|
|
|
|
|
class Sound_Output;
|
|
|
|
@ -57,7 +55,7 @@ namespace MWSound
|
|
|
|
|
std::string lookup(const std::string &soundId,
|
|
|
|
|
float &volume, float &min, float &max);
|
|
|
|
|
void streamMusicFull(const std::string& filename);
|
|
|
|
|
bool isPlaying(MWWorld::Ptr ptr, const std::string &id) const;
|
|
|
|
|
bool isPlaying(const MWWorld::Ptr &ptr, const std::string &id) const;
|
|
|
|
|
void updateSounds(float duration);
|
|
|
|
|
void updateRegionSound(float duration);
|
|
|
|
|
|
|
|
|
@ -93,7 +91,7 @@ namespace MWSound
|
|
|
|
|
///< Start playing music from the selected folder
|
|
|
|
|
/// \param name of the folder that contains the playlist
|
|
|
|
|
|
|
|
|
|
virtual void say(MWWorld::Ptr reference, const std::string& filename);
|
|
|
|
|
virtual void say(const MWWorld::Ptr &reference, const std::string& filename);
|
|
|
|
|
///< Make an actor say some text.
|
|
|
|
|
/// \param filename name of a sound file in "Sound/" in the data directory.
|
|
|
|
|
|
|
|
|
@ -101,10 +99,10 @@ namespace MWSound
|
|
|
|
|
///< Say some text, without an actor ref
|
|
|
|
|
/// \param filename name of a sound file in "Sound/" in the data directory.
|
|
|
|
|
|
|
|
|
|
virtual bool sayDone(MWWorld::Ptr reference=MWWorld::Ptr()) const;
|
|
|
|
|
virtual bool sayDone(const MWWorld::Ptr &reference=MWWorld::Ptr()) const;
|
|
|
|
|
///< Is actor not speaking?
|
|
|
|
|
|
|
|
|
|
virtual void stopSay(MWWorld::Ptr reference=MWWorld::Ptr());
|
|
|
|
|
virtual void stopSay(const MWWorld::Ptr &reference=MWWorld::Ptr());
|
|
|
|
|
///< Stop an actor speaking
|
|
|
|
|
|
|
|
|
|
virtual MWBase::SoundPtr playTrack(const DecoderPtr& decoder, PlayType type);
|
|
|
|
@ -113,14 +111,14 @@ namespace MWSound
|
|
|
|
|
virtual MWBase::SoundPtr playSound(const std::string& soundId, float volume, float pitch, PlayMode mode=Play_Normal);
|
|
|
|
|
///< Play a sound, independently of 3D-position
|
|
|
|
|
|
|
|
|
|
virtual MWBase::SoundPtr playSound3D(MWWorld::Ptr reference, const std::string& soundId,
|
|
|
|
|
virtual MWBase::SoundPtr playSound3D(const MWWorld::Ptr &reference, const std::string& soundId,
|
|
|
|
|
float volume, float pitch, PlayMode mode=Play_Normal);
|
|
|
|
|
///< Play a sound from an object
|
|
|
|
|
|
|
|
|
|
virtual void stopSound3D(MWWorld::Ptr reference, const std::string& soundId);
|
|
|
|
|
virtual void stopSound3D(const MWWorld::Ptr &reference, const std::string& soundId);
|
|
|
|
|
///< Stop the given object from playing the given sound,
|
|
|
|
|
|
|
|
|
|
virtual void stopSound3D(MWWorld::Ptr reference);
|
|
|
|
|
virtual void stopSound3D(const MWWorld::Ptr &reference);
|
|
|
|
|
///< Stop the given object from playing all sounds.
|
|
|
|
|
|
|
|
|
|
virtual void stopSound(const MWWorld::CellStore *cell);
|
|
|
|
@ -129,7 +127,7 @@ namespace MWSound
|
|
|
|
|
virtual void stopSound(const std::string& soundId);
|
|
|
|
|
///< Stop a non-3d looping sound
|
|
|
|
|
|
|
|
|
|
virtual bool getSoundPlaying(MWWorld::Ptr reference, const std::string& soundId) const;
|
|
|
|
|
virtual bool getSoundPlaying(const MWWorld::Ptr &reference, const std::string& soundId) const;
|
|
|
|
|
///< Is the given sound currently playing on the given object?
|
|
|
|
|
|
|
|
|
|
virtual void pauseSounds(int types=Play_TypeMask);
|
|
|
|
|