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
virtual ~Audio()
Destructor.
Definition: Audio.hpp:9
virtual void SetDopplerFactor(float factor)=0
Sets Doppler factor.
virtual void SetDopplerVelocity(float velocity)=0
Sets Doppler velocity.
virtual void SetMute(bool mute)=0
Sets muting on/off. Defaults to unmuted.
virtual void Play(const char *soundName)=0
Plays a sound. It must have been added before using addSound().
virtual void SetGain(float gain)=0
Sets gain.
virtual void AddSound(const char *soundName, const char *soundFile)=0
Adds a sound. It can be played back using Play().
virtual bool IsMuted() const =0
Mute status. Default: unmuted.
Handles audio.
Definition: Audio.hpp:5