nomlib
Toggle main menu visibility
Loading...
Searching...
No Matches
include
nomlib
audio
SoundManager.hpp
1
#pragma once
2
3
#include <string>
4
#include <map>
5
#include "export.hpp"
6
#include "nomlib/types.hpp"
7
#include "nomlib/audio/Sound.hpp"
8
9
namespace
nom {
10
namespace
audio {
11
12
class
Sound
;
13
14
enum
SoundTraits: nom::uint32
15
{
16
SOUND_NONE = 0x00,
17
SOUND_STREAM_OGG = 0x02,
18
SOUND_STREAM_SOUND = 0x04
19
};
20
21
// Put in nom::SDLApp?
22
class
NOM_EXPORT SoundManager
23
{
24
public
:
25
static
void
free_sounds();
26
27
//static void add_sound(const std::string& n, uint32 state = SOUND_NONE);
28
static
void
add_sound(
const
std::string& n,
bool
streaming =
false
);
29
static
Sound
* find_sound(
const
std::string& name);
30
static
void
remove_sound(
const
std::string& name);
31
32
protected
:
33
SoundManager();
34
~SoundManager();
35
36
static
std::map<std::string, Sound*> sounds;
37
};
38
39
}
// namespace audio
40
}
// namespace nom
nom::audio::Sound
Definition
Sound.hpp:28
Generated on
for nomlib by
1.18.0