Rendering code stripped out of the GUI code.

This commit is contained in:
Zed A. Shaw 2024-10-30 18:54:51 -04:00
parent 009b1e63a7
commit 9397af2a11
9 changed files with 239 additions and 203 deletions

View file

@ -16,7 +16,7 @@ void SoundManager::load(const std::string name, const std::string sound_path) {
dbc::check(fs::exists(full_path), format("sound file {} does not exist", sound_path));
// create the buffer and keep in the buffer map
std::shared_ptr<SoundPair> pair = std::make_shared<SoundPair>();
SoundPair* pair = new SoundPair();
$sounds[name] = pair;
bool good = pair->buffer.loadFromFile(full_path.string());