4#include <unordered_map>
12using std::unordered_map;
19AudioBufferManager::AudioBufferManager()
28 if (audioBufferManaged !=
nullptr) {
31 return audioBufferManaged;
39 return audioBufferManaged;
46 if (audioBufferManaged !=
nullptr) {
50 delete audioBufferManaged;
58 Console::println(
string(
"Warning: audio buffer not loaded by audio buffer manager"));
Managed audio buffer entity.
void incrementReferenceCounter()
increment reference counter
bool decrementReferenceCounter()
decrement reference counter
bool removeAudioBuffer(const string &id)
Removes a texture from manager / open gl stack.
unordered_map< string, AudioBufferManager_AudioBufferManaged * > audioBuffers
friend class AudioBufferManager_AudioBufferManaged
AudioBufferManager_AudioBufferManaged * addAudioBuffer(const string &id)
Adds a audio buffer to manager / open al stack.
Interface to audio module.
static constexpr int32_t ALBUFFERID_NONE