30 #include "sound/oalsound/check.h"
65 int Play(
Sound sound,
float amplitude=1.0f,
float frequency=1.0f,
bool bLoop =
false);
66 int Play(
Sound sound,
const Math::Vector &pos,
float amplitude=1.0f,
float frequency=1.0f,
bool bLoop =
false);
70 bool Frequency(
int channel,
float frequency);
71 bool Stop(
int channel);
75 bool PlayMusic(
int rank,
bool bRepeat,
float fadeTime=2.0f);
76 bool PlayMusic(
const std::string &filename,
bool bRepeat,
float fadeTime=2.0f);
84 bool CheckChannel(
int &channel);
88 int GetPriority(
Sound);
89 bool SearchFreeBuffer(
Sound sound,
int &channel,
bool &bAlreadyLoaded);
94 unsigned int m_channels_limit;
96 ALCcontext* m_context;
97 std::map<Sound, Buffer*> m_sounds;
98 std::map<std::string, Buffer*> m_music;
99 std::map<int, Channel*> m_channels;
101 std::list<OldMusic> m_oldMusic;