Audio struct.
More...
#include <ember_audio.h>
Audio struct.
- Version
- 0.0.9
◆ Audio() [1/2]
Audio::Audio |
( |
const Audio & |
| ) |
|
|
delete |
◆ Audio() [2/2]
Audio::Audio |
( |
Audio && |
| ) |
|
|
delete |
◆ Destroy()
Unload Audio allocated memory.
- Manually clear allocated audio or at the end will be freed
- See also
- CloseAudio
- Version
- 0.0.3
- Returns
- void
◆ IsPlaying()
bool Audio::IsPlaying |
( |
| ) |
|
◆ Load()
Audio * Audio::Load |
( |
const std::string & |
file_Path | ) |
|
|
static |
Load Audio and keep track of it.
- Parameters
-
file_Path | Path to the audio file |
- Version
- 0.0.3
- Returns
- Audio allocated audio memory struct
◆ operator=()
◆ Pause()
Pause audio and fade out.
- Version
- 0.0.3
- Returns
- void
◆ Play()
void Audio::Play |
( |
bool |
loop = false | ) |
|
Play audio.
- Parameters
-
loop | Play audio in loop or not |
- Version
- 0.0.3
- Returns
- void
◆ SetLoop()
void Audio::SetLoop |
( |
bool |
loop | ) |
|
◆ SetVolume()
void Audio::SetVolume |
( |
float |
vol | ) |
|
Change the audio volume.
- Parameters
-
vol | Audio volume from 0.0 to 1.0 |
- Version
- 0.0.3
- Returns
* void
◆ duration
float Audio::duration = 0.0f |
◆ volume
float Audio::volume = 1.0f |
The documentation for this class was generated from the following files: