Aether3D
Game Engine
Audio.hpp
1 #ifndef AUDIO_H
2 #define AUDIO_H
3 
5 class Audio
6 {
7  public:
9  virtual ~Audio() {}
10 
18  virtual void AddSound( const char* soundName, const char* soundFile ) = 0;
19 
25  virtual void Play( const char* soundName ) = 0;
26 
32  virtual bool IsMuted() const = 0;
33 
39  virtual void SetDopplerFactor( float factor ) = 0;
40 
46  virtual void SetDopplerVelocity( float velocity ) = 0;
47 
53  virtual void SetGain( float gain ) = 0;
54 
60  virtual void SetMute( bool mute ) = 0;
61 };
62 #endif
Audio::~Audio
virtual ~Audio()
Destructor.
Definition: Audio.hpp:9
Audio::AddSound
virtual void AddSound(const char *soundName, const char *soundFile)=0
Adds a sound. It can be played back using Play().
Audio::IsMuted
virtual bool IsMuted() const =0
Mute status. Default: unmuted.
Audio::SetGain
virtual void SetGain(float gain)=0
Sets gain.
Audio::Play
virtual void Play(const char *soundName)=0
Plays a sound. It must have been added before using addSound().
Audio::SetMute
virtual void SetMute(bool mute)=0
Sets muting on/off. Defaults to unmuted.
Audio
Handles audio.
Definition: Audio.hpp:5
Audio::SetDopplerFactor
virtual void SetDopplerFactor(float factor)=0
Sets Doppler factor.
Audio::SetDopplerVelocity
virtual void SetDopplerVelocity(float velocity)=0
Sets Doppler velocity.