1 #ifndef RADIX_SOUNDMANAGER_HPP
2 #define RADIX_SOUNDMANAGER_HPP
7 #include <SDL2/SDL_mixer.h>
23 static void playMusic(
const std::string &filename);
24 static void playSound(
const std::string &filename,
const Entity &source);
32 static std::map<int, SoundInfo>
sounds;
Definition: GameController.hpp:7
Definition: SoundManager.hpp:15
Mix_Chunk * chunk
Definition: SoundManager.hpp:16
ECS entity, Component container It is created like this:
Definition: Entity.hpp:23
static void reload()
Definition: SoundManager.cpp:147
static std::map< int, SoundInfo > sounds
Definition: SoundManager.hpp:32
static void destroy()
Definition: SoundManager.cpp:129
static void update(const Entity &listener)
Definition: SoundManager.cpp:110
Definition: SoundManager.hpp:13
static bool isInitialized
Definition: SoundManager.hpp:29
static void init()
Definition: SoundManager.cpp:13
static bool isDisabled
Definition: SoundManager.hpp:29
static void playSound(const std::string &filename, const Entity &source)
Definition: SoundManager.cpp:87
static void playMusic(const std::string &filename)
Definition: SoundManager.cpp:63
static Mix_Music * music
Definition: SoundManager.hpp:31