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