1 #ifndef GAME_SOUND_SOUND_OUTPUT_H
2 #define GAME_SOUND_SOUND_OUTPUT_H
25 virtual std::vector<std::string>
enumerate() = 0;
26 virtual void init(
const std::string &devname=std::string()) = 0;
30 virtual void enableHrtf(
const std::string &hrtfname,
bool auto_enable) = 0;
55 virtual void updateListener(
const osg::Vec3f &pos,
const osg::Vec3f &atdir,
const osg::Vec3f &updir,
Environment env) = 0;
void * Sound_Handle
Definition: sound_output.hpp:14
virtual float getStreamLoudness(MWBase::SoundStreamPtr sound)=0
Definition: openal_output.hpp:19
Sound_Output(const Sound_Output &rhs)
virtual std::vector< std::string > enumerate()=0
virtual std::vector< std::string > enumerateHrtf()=0
virtual void unloadSound(Sound_Handle data)=0
bool isInitialized() const
Definition: sound_output.hpp:72
virtual void finishUpdate()=0
virtual void finishStream(MWBase::SoundStreamPtr sound)=0
virtual ~Sound_Output()
Definition: sound_output.hpp:70
virtual size_t getSoundDataSize(Sound_Handle data) const =0
virtual void enableHrtf(const std::string &hrtfname, bool auto_enable)=0
void * Sound_Instance
Definition: sound_output.hpp:19
virtual void updateSound(MWBase::SoundPtr sound)=0
Sound_Output & operator=(const Sound_Output &rhs)
Sound_Output(SoundManager &mgr)
Definition: sound_output.hpp:66
virtual void init(const std::string &devname=std::string())=0
virtual void playSound3D(MWBase::SoundPtr sound, Sound_Handle data, float offset)=0
virtual bool isStreamPlaying(MWBase::SoundStreamPtr sound)=0
boost::shared_ptr< Sound_Decoder > DecoderPtr
Definition: soundmanager.hpp:19
virtual void finishSound(MWBase::SoundPtr sound)=0
bool mInitialized
Definition: sound_output.hpp:64
virtual void pauseSounds(int types)=0
virtual bool isSoundPlaying(MWBase::SoundPtr sound)=0
boost::shared_ptr< MWSound::Stream > SoundStreamPtr
Definition: soundmanager.hpp:26
virtual void updateListener(const osg::Vec3f &pos, const osg::Vec3f &atdir, const osg::Vec3f &updir, Environment env)=0
SoundManager & mManager
Definition: sound_output.hpp:23
virtual void resumeSounds(int types)=0
virtual void streamSound(DecoderPtr decoder, MWBase::SoundStreamPtr sound)=0
virtual void startUpdate()=0
Definition: soundmanagerimp.hpp:45
virtual void updateStream(MWBase::SoundStreamPtr sound)=0
virtual void streamSound3D(DecoderPtr decoder, MWBase::SoundStreamPtr sound, bool getLoudnessData)=0
Definition: sound_output.hpp:21
virtual double getStreamOffset(MWBase::SoundStreamPtr sound)=0
virtual double getStreamDelay(MWBase::SoundStreamPtr sound)=0
virtual void disableHrtf()=0
boost::shared_ptr< MWSound::Sound > SoundPtr
Definition: soundmanager.hpp:25
virtual Sound_Handle loadSound(const std::string &fname)=0
virtual void playSound(MWBase::SoundPtr sound, Sound_Handle data, float offset)=0
Environment
Definition: soundmanagerimp.hpp:35