30 #include "sound/oalsound/check.h"
62 int Play(
Sound sound,
float amplitude=1.0f,
float frequency=1.0f,
bool bLoop =
false);
63 int Play(
Sound sound,
Math::Vector pos,
float amplitude=1.0f,
float frequency=1.0f,
bool bLoop =
false);
67 bool Frequency(
int channel,
float frequency);
68 bool Stop(
int channel);
73 bool PlayMusic(std::string filename,
bool bRepeat);
80 std::string PluginName();
83 bool UninstallPlugin(std::string &);
87 int GetPriority(
Sound);
88 bool SearchFreeBuffer(
Sound sound,
int &channel,
bool &bAlreadyLoaded);
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;
bool GetEnable()
Definition: alsound.cpp:131
bool Create(bool b3D)
Definition: alsound.cpp:80
void SetListener(Math::Vector eye, Math::Vector lookat)
Definition: alsound.cpp:588
bool Position(int channel, Math::Vector pos)
Definition: alsound.cpp:424
bool MuteAll(bool bMute)
Definition: alsound.cpp:499
bool RestartMusic()
Definition: alsound.cpp:666
bool GetSound3DCap()
Definition: alsound.cpp:124
int Play(Sound sound, float amplitude=1.0f, float frequency=1.0f, bool bLoop=false)
Definition: alsound.cpp:334
void SetMusicVolume(int volume)
Definition: alsound.cpp:152
void FrameMove(float rTime)
Definition: alsound.cpp:524
void StopMusic()
Definition: alsound.cpp:678
bool Stop(int channel)
Definition: alsound.cpp:467
bool IsPlayingMusic()
Definition: alsound.cpp:689
bool StopAll()
Definition: alsound.cpp:484
bool GetSound3D()
Definition: alsound.cpp:118
bool AddEnvelope(int channel, float amplitude, float frequency, float time, SoundNext oper)
Definition: alsound.cpp:402
SoundNext
Enum representing operation that will be performend on a sound at given time.
Definition: sound.h:135
void SuspendMusic()
Definition: alsound.cpp:700
bool FlushEnvelope(int channel)
Definition: alsound.cpp:390
Sound
Sound enum representing sound file.
Definition: sound.h:42
bool CacheMusic(std::string)
Definition: alsound.cpp:182
bool Frequency(int channel, float frequency)
Definition: alsound.cpp:452
Class for logging information to file or console.
void SetAudioVolume(int volume)
Definition: alsound.cpp:137
bool Cache(Sound, std::string)
Definition: alsound.cpp:171
3D (3x1) vector
Definition: vector.h:49
int GetAudioVolume()
Definition: alsound.cpp:143
void SetSound3D(bool bMode)
Definition: alsound.cpp:112
bool PlayMusic(int rank, bool bRepeat)
Definition: alsound.cpp:622
int GetMusicVolume()
Definition: alsound.cpp:162
Sound plugin interface.
Definition: sound.h:149