1 #ifndef GAME_MWBASE_SOUNDMANAGER_H
2 #define GAME_MWBASE_SOUNDMANAGER_H
6 #include <boost/shared_ptr.hpp>
8 #include "../mwworld/ptr.hpp"
20 typedef boost::shared_ptr<Sound_Decoder>
DecoderPtr;
25 typedef boost::shared_ptr<MWSound::Sound>
SoundPtr;
76 virtual void streamMusic(
const std::string& filename) = 0;
86 virtual void playPlaylist(
const std::string &playlist) = 0;
94 virtual void say(
const std::string& filename) = 0;
120 virtual SoundPtr playSound(
const std::string& soundId,
float volume,
float pitch,
148 virtual void stopSound(
const std::string& soundId) = 0;
167 virtual void update(
float duration) = 0;
169 virtual void setListenerPosDir(
const osg::Vec3f &pos,
const osg::Vec3f &dir,
const osg::Vec3f &up,
bool underwater) = 0;
173 virtual void clear() = 0;
virtual void playPlaylist(const std::string &playlist)=0
virtual void stopTrack(SoundStreamPtr stream)=0
Stop the given audio track from playing.
virtual void stopSound(SoundPtr sound)=0
Stop the given sound from playing.
Definition: soundmanager.hpp:50
SoundManager & operator=(const SoundManager &)
not implemented
virtual SoundStreamPtr playTrack(const MWSound::DecoderPtr &decoder, PlayType type)=0
Play a 2D audio track, using a custom decoder.
virtual MWBase::SoundPtr playSound3D(const MWWorld::ConstPtr &reference, const std::string &soundId, float volume, float pitch, PlayType type=Play_TypeSfx, PlayMode mode=Play_Normal, float offset=0)=0
virtual void setListenerPosDir(const osg::Vec3f &pos, const osg::Vec3f &dir, const osg::Vec3f &up, bool underwater)=0
Definition: soundmanager.hpp:54
Definition: soundmanager.hpp:49
Definition: soundmanager.hpp:45
Definition: soundmanager.hpp:43
virtual void stopMusic()=0
Stops music if it's playing.
virtual bool sayDone(const MWWorld::ConstPtr &reference=MWWorld::ConstPtr()) const =0
Is actor not speaking?
PlayType
Definition: soundmanager.hpp:48
Definition: soundmanager.hpp:51
virtual SoundPtr playSound(const std::string &soundId, float volume, float pitch, PlayType type=Play_TypeSfx, PlayMode mode=Play_Normal, float offset=0)=0
Definition: soundmanager.hpp:34
virtual void startRandomTitle()=0
Starts a random track from the current playlist.
virtual void streamMusic(const std::string &filename)=0
virtual void say(const MWWorld::ConstPtr &reference, const std::string &filename)=0
Definition: soundmanager.hpp:35
virtual void updatePtr(const MWWorld::ConstPtr &old, const MWWorld::ConstPtr &updated)=0
virtual bool isMusicPlaying()=0
Returns true if music is playing.
Definition: soundmanager.hpp:53
boost::shared_ptr< Sound_Decoder > DecoderPtr
Definition: soundmanager.hpp:19
boost::shared_ptr< MWSound::Stream > SoundStreamPtr
Definition: soundmanager.hpp:26
Definition: soundmanager.hpp:46
virtual void update(float duration)=0
Mutable state of a cell.
Definition: cellstore.hpp:53
virtual void processChangedSettings(const std::set< std::pair< std::string, std::string > > &settings)=0
Pointer to a const LiveCellRef.
Definition: ptr.hpp:90
virtual float getSaySoundLoudness(const MWWorld::ConstPtr &reference) const =0
Definition: soundmanager.hpp:52
virtual bool getSoundPlaying(const MWWorld::ConstPtr &reference, const std::string &soundId) const =0
virtual void pauseSounds(int types=Play_TypeMask)=0
Pauses all currently playing sounds, including music.
PlayMode
Definition: soundmanager.hpp:33
virtual double getTrackTimeDelay(SoundStreamPtr stream)=0
Interface for sound manager (implemented in MWSound)
Definition: soundmanager.hpp:29
virtual void fadeOutSound3D(const MWWorld::ConstPtr &reference, const std::string &soundId, float duration)=0
virtual ~SoundManager()
Definition: soundmanager.hpp:69
virtual void stopSound3D(const MWWorld::ConstPtr &reference, const std::string &soundId)=0
Stop the given object from playing the given sound,.
Definition: soundmanager.hpp:37
virtual void stopSay(const MWWorld::ConstPtr &reference=MWWorld::ConstPtr())=0
Stop an actor speaking.
SoundManager()
Definition: soundmanager.hpp:67
Definition: soundmanager.hpp:36
Definition: sound_decoder.hpp:33
boost::shared_ptr< MWSound::Sound > SoundPtr
Definition: soundmanager.hpp:25
virtual void resumeSounds(int types=Play_TypeMask)=0
Resumes all previously paused sounds.