YAPOG  0.0.1
Yet Another Pokemon Online Game
AudioManager.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_AUDIOMANAGER_HPP
2 # define YAPOG_AUDIOMANAGER_HPP
3 
4 # include "SFML/Audio/Music.hpp"
5 # include "SFML/Audio/Sound.hpp"
6 
7 # include "YAPOG/Macros.hpp"
8 # include "YAPOG/System/String.hpp"
9 
10 namespace yap
11 {
13  {
15 
16  public:
17  static AudioManager& Instance ();
18  void PlayMusic (const String& musicName, bool fromBegin = true);
19  void PlaySound (const String&soundName);
20  void ResumePreviousMusic ();
21 
22  private:
23  AudioManager ();
24  ~AudioManager ();
25  sf::Music* currentMusic_;
26  sf::Music* previousMusic_;
27  sf::Sound* currentSound_;
28  };
29 } // namespace yap
30 
31 #endif // YAPOG_AUDIOMANAGER_HPP