Rendering code stripped out of the GUI code.
This commit is contained in:
parent
009b1e63a7
commit
9397af2a11
9 changed files with 239 additions and 203 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue