1 #ifndef UGDK_AUDIO_MANAGER_H_
2 #define UGDK_AUDIO_MANAGER_H_
44 static const int NUM_CHANNELS = 16;
45 std::map<std::string, Sample*> sample_data_;
46 std::map<std::string, Music*> music_data_;
48 void ReleaseSamples();
55 #endif // UGDK_AUDIO_MANAGER_H_
Sample * LoadSample(const std::string &filepath)
Loads an audio sample.
Definition: animation.h:11
Music * LoadMusic(const std::string &filepath)
Loads a music.
bool Initialize()
Initializes audio channels.
void Update()
Logical update. Currently does nothing.
Music * CurrentMusic() const
Getter for the music that is currently playing.
void Release()
Frees all audio samples and music, and closes the audio channels.