#include <ugdk/audio/manager.h>
ugdk::audio::Manager::Manager |
( |
| ) |
|
ugdk::audio::Manager::~Manager |
( |
| ) |
|
Music* ugdk::audio::Manager::CurrentMusic |
( |
| ) |
const |
Getter for the music that is currently playing.
- Returns
- nullptr is no music is currently playing, a Music* otherwise.
bool ugdk::audio::Manager::Initialize |
( |
| ) |
|
Initializes audio channels.
- Returns
- True if successful, false otherwise.
Music* ugdk::audio::Manager::LoadMusic |
( |
const std::string & |
filepath | ) |
|
Loads a music.
- Parameters
-
filepath | The path to the music file. |
Sample* ugdk::audio::Manager::LoadSample |
( |
const std::string & |
filepath | ) |
|
Loads an audio sample.
- Parameters
-
filepath | The path to the audio sample. |
void ugdk::audio::Manager::Release |
( |
| ) |
|
Frees all audio samples and music, and closes the audio channels.
void ugdk::audio::Manager::Update |
( |
| ) |
|
Logical update. Currently does nothing.
The documentation for this class was generated from the following file:
- modules/ugdk-core/include/ugdk/audio/manager.h