Moved to SFML 3.0 now.
This commit is contained in:
parent
7c56f350ab
commit
e05b2c304c
12 changed files with 167 additions and 173 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue