Moved to SFML 3.0 now.

This commit is contained in:
Zed A. Shaw 2025-01-29 12:55:33 -05:00
parent 7c56f350ab
commit e05b2c304c
12 changed files with 167 additions and 173 deletions

View file

@ -6,13 +6,13 @@
#include <SFML/Audio.hpp>
struct SoundPair {
sf::SoundBuffer buffer;
sf::Sound sound;
std::shared_ptr<sf::SoundBuffer> buffer;
std::shared_ptr<sf::Sound> sound;
};
struct SoundManager {
std::filesystem::path $base_path;
std::unordered_map<std::string, SoundPair* > $sounds;
std::unordered_map<std::string, SoundPair> $sounds;
SoundManager(std::string base_path);