fysxasteroids/engine/SoundBaseGlobal.h

32 lines
973 B
C
Raw Normal View History

#ifndef _SOUNDGLOBAL_H
#define _SOUNDGLOBAL_H
namespace Engine {
void PlaySound (const std::string &sound_name);
void PlaySoundLoop (const std::string &sound_name, int count);
void HaltSoundLoop (const std::string &sound_name);
void PlayMusic (const std::string &music_name);
2011-03-24 08:26:06 +01:00
/** \brief Loads a sound effect for later use */
void LoadSound (const std::string &sound_name);
/** \brief Sets the volume of the music channel to the given value
*
* \param music_value is a value from 0. (no music) to 1. (maximum volume)
*/
void SetMusicVolume (const float &music_volume);
/** \brief Returns the value of the music (0. - 1.) */
float GetMusicVolume ();
/** \brief Sets the volume of the music channel to the given value
*
* \param music_value is a value from 0. (no music) to 1. (maximum volume)
*/
void SetEffectsVolume (const float &effects_volume);
/** \brief Returns the value of the effects (0. - 1.) */
float GetEffectsVolume ();
}
#endif /* _SOUNDGLOBAL_H */