Replaced unique_ptr with Corrade::Containers::Pointer

This commit is contained in:
2025-09-04 22:48:42 +03:00
parent ead1e742d1
commit 29bcf9fbae
2 changed files with 6 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
#include "ChargeAudio.hpp"
#include <Corrade/Containers/Pointer.h>
#include <Corrade/Utility/Debug.h>
#include <cstddef>
@@ -16,8 +17,8 @@ Engine::Engine() {
}
}
std::unique_ptr<Sound> Engine::CreateSound(std::string filepath) {
auto sound = std::unique_ptr<Sound>(new Sound());
Containers::Pointer<Sound> Engine::CreateSound(std::string filepath) {
auto sound = Containers::Pointer<Sound>(new Sound());
sound->baseEngine = this;
maResponse = ma_sound_init_from_file(&maEngine, filepath.c_str(), 0, NULL,