Class Engine::Sound¶
Engine wrapper for audio.
#include <Sound.hpp>
Public Functions¶
| Type | Name |
|---|---|
| float | GetVolume () const |
| bool | IsLooping () const |
| bool | IsPlaying () const |
| void | Play () |
| void | SetLooping (const bool value) |
| void | SetVolume (const float volume) |
| Sound () |
|
| Sound (const std::string & path, const bool isLoop=false) |
|
| Sound (const char * fileType, const unsigned char * data, int dataSize, const bool isLoop=false) |
|
| Sound (const Sound & other) |
|
| Sound (Sound && other) noexcept |
|
| void | Stop () |
| void | Update () Restarts a looped sound after it reaches its end. |
| Sound & | operator= (const Sound & other) |
| Sound & | operator= (Sound && other) noexcept |
| ~Sound () |
Public Functions Documentation¶
function GetVolume¶
function IsLooping¶
function IsPlaying¶
function Play¶
function SetLooping¶
function SetVolume¶
function Sound [⅕]¶
function Sound [⅖]¶
function Sound [⅗]¶
inline Engine::Sound::Sound (
const char * fileType,
const unsigned char * data,
int dataSize,
const bool isLoop=false
)
function Sound [⅘]¶
function Sound [5/5]¶
function Stop¶
function Update¶
Restarts a looped sound after it reaches its end.
function operator=¶
function operator=¶
function ~Sound¶
The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Assets/Sound.hpp