7 #ifndef NAZARA_SOUNDEMITTER_HPP 8 #define NAZARA_SOUNDEMITTER_HPP 10 #include <Nazara/Prerequesites.hpp> 11 #include <Nazara/Audio/Config.hpp> 12 #include <Nazara/Audio/Enums.hpp> 13 #include <Nazara/Math/Vector3.hpp> 24 virtual void EnableLooping(
bool loop) = 0;
25 void EnableSpatialization(
bool spatialization);
27 float GetAttenuation()
const;
28 virtual UInt32 GetDuration()
const = 0;
29 float GetMinDistance()
const;
30 float GetPitch()
const;
31 virtual UInt32 GetPlayingOffset()
const = 0;
34 virtual SoundStatus GetStatus()
const = 0;
35 float GetVolume()
const;
37 virtual bool IsLooping()
const = 0;
38 bool IsSpatialized()
const;
40 virtual void Pause() = 0;
41 virtual void Play() = 0;
43 void SetAttenuation(
float attenuation);
44 void SetMinDistance(
float minDistance);
45 void SetPitch(
float pitch);
46 void SetPosition(
const Vector3f& position);
47 void SetPosition(
float x,
float y,
float z);
48 void SetVelocity(
const Vector3f& velocity);
49 void SetVelocity(
float velX,
float velY,
float velZ);
50 void SetVolume(
float volume);
52 virtual void Stop() = 0;
62 SoundStatus GetInternalStatus()
const;
64 unsigned int m_source;
67 #endif // NAZARA_SOUNDEMITTER_HPP TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12
Audio class that represents a sound source, that emits sound.
Definition: SoundEmitter.hpp:19