 |
BARE2D
|
|
Go to the documentation of this file.
39 unsigned int playSound(
Sound& sound,
unsigned int fadeTime = 0,
unsigned int timeOut = 0,
int angle = 0,
unsigned char distance = 128);
52 void stopSound(
unsigned int& soundID,
unsigned int fadeTime = 0);
74 void stopMusic(
unsigned int fadeTime = 0);
std::iterator_traits< octet_iterator >::difference_type distance(octet_iterator first, octet_iterator last)
void resumeMusic()
Resumes the paused music.
unsigned char m_masterVolume
void resumeSound(unsigned int &soundID)
Resumes a paused sound.
void playMusic(Music &music, unsigned int fadeTime=0)
Plays some music! Only one "music" can be played at a time.
static AudioManager * m_instance
void setMusicVolume(unsigned char volumeLevel)
Sets the volume level of all music.
void setSoundVolume(unsigned char volumeLevel)
Sets the volume level of all sounds.
void pauseSound(unsigned int &soundID)
Pauses a sound.
void init()
Initializes all necessary bits and pieces.
void pauseMusic()
Pauses the music.
void unmute()
Unmutes all sounds and music.
void stopSound(unsigned int &soundID, unsigned int fadeTime=0)
Stops a sound.
unsigned int playSound(Sound &sound, unsigned int fadeTime=0, unsigned int timeOut=0, int angle=0, unsigned char distance=128)
Plays a sound at a position.
static AudioManager * getInstance()
void setMasterVolumeModifier(unsigned char masterLevel)
Sets the modifier of all sound levels - eg., if sounds were set at 40% and music at 60%,...
void stopMusic(unsigned int fadeTime=0)
Stops the music.
unsigned char m_soundVolume
void mute()
Mutes all sounds and music.
void destroy()
Destroys/quits all necessary bits and pieces.
void moveSound(unsigned int &soundID, int angle, unsigned char distance=128)
Resets the sound's position for positional audio.
unsigned char m_musicVolume