32 #include "sound/oalsound/check.h"
54 bool Cache(
Sound,
const std::string &) OVERRIDE;
69 int Play(
Sound sound,
float amplitude=1.0f,
float frequency=1.0f,
bool bLoop =
false) OVERRIDE;
70 int Play(
Sound sound,
const Math::Vector &pos,
float amplitude=1.0f,
float frequency=1.0f,
bool bLoop =
false) OVERRIDE;
72 bool AddEnvelope(
int channel,
float amplitude,
float frequency,
float time,
SoundNext oper) OVERRIDE;
74 bool Frequency(
int channel,
float frequency) OVERRIDE;
75 bool Stop(
int channel) OVERRIDE;
77 bool MuteAll(
bool bMute) OVERRIDE;
79 bool PlayMusic(
int rank,
bool bRepeat,
float fadeTime=2.0f) OVERRIDE;
80 bool PlayMusic(
const std::string &filename,
bool bRepeat,
float fadeTime=2.0f) OVERRIDE;
83 void StopMusic(
float fadeTime=2.0f) OVERRIDE;
85 bool PlayPauseMusic(
const std::string &filename,
bool repeat) OVERRIDE;
90 int GetPriority(
Sound);
91 bool SearchFreeBuffer(
Sound sound,
int &channel,
bool &bAlreadyLoaded);
92 bool CheckChannel(
int &channel);
97 unsigned int m_channels_limit;
99 ALCcontext* m_context;
100 std::map<Sound, Buffer*> m_sounds;
101 std::map<std::string, Buffer*> m_music;
102 std::map<int, Channel*> m_channels;
104 std::list<OldMusic> m_oldMusic;
void SetListener(const Math::Vector &eye, const Math::Vector &lookat) OVERRIDE
Definition: alsound.cpp:603
bool FlushEnvelope(int channel) OVERRIDE
Definition: alsound.cpp:402
int Play(Sound sound, float amplitude=1.0f, float frequency=1.0f, bool bLoop=false) OVERRIDE
Definition: alsound.cpp:340
bool IsCachedMusic(const std::string &) OVERRIDE
Definition: alsound.cpp:189
bool Stop(int channel) OVERRIDE
Definition: alsound.cpp:457
void SuspendMusic() OVERRIDE
Definition: alsound.cpp:777
bool IsPlayingMusic() OVERRIDE
Definition: alsound.cpp:766
bool Position(int channel, const Math::Vector &pos) OVERRIDE
Definition: alsound.cpp:433
bool Create() OVERRIDE
Definition: alsound.cpp:88
bool PlayMusic(int rank, bool bRepeat, float fadeTime=2.0f) OVERRIDE
Definition: alsound.cpp:616
void SetAudioVolume(int volume) OVERRIDE
Definition: alsound.cpp:125
void StopPauseMusic() OVERRIDE
Definition: alsound.cpp:715
bool AddEnvelope(int channel, float amplitude, float frequency, float time, SoundNext oper) OVERRIDE
Definition: alsound.cpp:414
bool Frequency(int channel, float frequency) OVERRIDE
Definition: alsound.cpp:445
int GetAudioVolume() OVERRIDE
Definition: alsound.cpp:131
SoundNext
Enum representing operation that will be performend on a sound at given time.
Definition: sound.h:137
int GetMusicVolume() OVERRIDE
Definition: alsound.cpp:150
bool StopAll() OVERRIDE
Definition: alsound.cpp:471
Sound
Sound enum representing sound file.
Definition: sound.h:44
bool IsCached(Sound) OVERRIDE
Definition: alsound.cpp:184
Class for logging information to file or console.
3D (3x1) vector
Definition: vector.h:52
bool CacheMusic(const std::string &) OVERRIDE
Definition: alsound.cpp:170
void SetMusicVolume(int volume) OVERRIDE
Definition: alsound.cpp:140
bool Cache(Sound, const std::string &) OVERRIDE
Definition: alsound.cpp:159
bool MuteAll(bool bMute) OVERRIDE
Definition: alsound.cpp:488
bool RestartMusic() OVERRIDE
Definition: alsound.cpp:736
void StopMusic(float fadeTime=2.0f) OVERRIDE
Definition: alsound.cpp:749
bool GetEnable() OVERRIDE
Definition: alsound.cpp:119
bool PlayPauseMusic(const std::string &filename, bool repeat) OVERRIDE
Definition: alsound.cpp:687
Sound plugin interface.
Definition: sound.h:151
void FrameMove(float rTime) OVERRIDE
Definition: alsound.cpp:507