Nymph Game Engine
Chaiscript based Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sound_system.h
Go to the documentation of this file.
1 #ifndef SOUND_SYSTEM_H
2 #define SOUND_SYSTEM_H
3 #define DEBUG
4 //include <yse/yse.hpp>
5 #include "sound_instance.h"
6 namespace Sound {
7  class SoundSystem {
8  private:
9  std::map<std::string, std::shared_ptr<SoundInstance>> sounds;
10  std::string sounds_location;
11 
12  public:
13  SoundSystem() = delete;
14  SoundSystem(const std::string sounds_location);
15  virtual ~SoundSystem() {}
16 
17  bool loadSound(const std::string filename);
18 
19  std::shared_ptr<SoundInstance> getSound(const std::string name);
20 
21  void update(const double delta);
22  void destroy();
23  };
24 }
25 
26 #endif
Definition: sound_system.h:7
virtual ~SoundSystem()
Definition: sound_system.h:15
bool loadSound(const std::string filename)
void update(const double delta)
std::shared_ptr< SoundInstance > getSound(const std::string name)