YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
{
12
class
YAPOG_LIB
AudioManager
13
{
14
DISALLOW_COPY
(
AudioManager
);
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
YAPOG
include
YAPOG
Audio
AudioManager.hpp
Generated on Mon Sep 17 2012 22:24:22 for YAPOG by
1.8.1.1