68 virtual bool Create();
81 virtual bool Cache(
SoundType sound,
const std::string &file);
88 virtual void CacheMusic(
const std::string &file);
100 virtual bool IsCachedMusic(
const std::string &file);
105 virtual bool GetEnable();
110 virtual void SetAudioVolume(
int volume);
115 virtual int GetAudioVolume();
120 virtual void SetMusicVolume(
int volume);
125 virtual int GetMusicVolume();
136 virtual void FrameMove(
float rTime);
145 virtual int Play(
SoundType sound,
float amplitude=1.0f,
float frequency=1.0f,
bool loop =
false);
155 virtual int Play(
SoundType sound,
const Math::Vector &pos,
float amplitude=1.0f,
float frequency=1.0f,
bool loop =
false);
161 virtual bool FlushEnvelope(
int channel);
171 virtual bool AddEnvelope(
int channel,
float amplitude,
float frequency,
float time,
SoundNext oper);
178 virtual bool Position(
int channel,
const Math::Vector &pos);
185 virtual bool Frequency(
int channel,
float frequency);
191 virtual bool Stop(
int channel);
196 virtual bool StopAll();
202 virtual bool MuteAll(
bool mute);
210 virtual void PlayMusic(
const std::string &filename,
bool repeat,
float fadeTime = 2.0f);
215 virtual void StopMusic(
float fadeTime=2.0f);
220 virtual bool IsPlayingMusic();
228 virtual void PlayPauseMusic(
const std::string &filename,
bool repeat);
233 virtual void StopPauseMusic();
const float MAXVOLUME
Definition: sound.h:39
Namespace for (new) math code.
Definition: device.h:39
SoundNext
Enum representing operation that will be performend on a sound at given time.
Definition: sound.h:46
SoundType
Enum representing sound file.
Definition: sound_type.h:34
3D (3x1) vector
Definition: vector.h:53
Defines the SoundType enum.
Sound plugin interface.
Definition: sound.h:60