mirror of
https://github.com/zeldaret/ss
synced 2026-05-25 23:35:13 -04:00
26af4db82d
* update from dtk-template and start work towards using clangd * include <a> -> "a" * Update build.yml * remove/add non-trivial class in union warning
19 lines
382 B
C++
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
|