Files
ss/src/egg/audio/eggAudioHeapMgr.cpp
T
Elijah Thomas 26af4db82d update from dtk-template - clangd :) (#66)
* update from dtk-template and start work towards using clangd

* include <a> -> "a"

* Update build.yml

* remove/add non-trivial class in union warning
2024-10-16 15:36:02 -04:00

19 lines
382 B
C++

#include "egg/audio/eggAudioHeapMgr.h"
namespace EGG {
void SoundHeapMgr::createSoundHeap(Allocator *allocator, u32 size) {
if (!mSoundHeap.IsValid()) {
void *ptr = allocator->alloc(size);
if (ptr != nullptr) {
mSoundHeap.Create(ptr, size);
}
}
}
void SoundHeapMgr::destroySoundHeap() {
mSoundHeap.Destroy();
}
} // namespace EGG