23 #if defined(_DEBUG) && defined(_WINDOWS)
24 #define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
33 template class Singleton<Sounds>;
34 template class Database<Sound_Buffer>;
36 Sounds * Sounds::create() {
40 Singleton<Sounds>::Uninit Sounds::g_uninit;
41 Singleton<Sounds>::Reinit Sounds::g_reinit;
44 : Database<Sound_Buffer>(
"config/sounds.xml",
"Sounds")
52 sr.lend_pre_uninit(&g_uninit);
53 sr.lend_post_reinit(&g_reinit);
57 Sound::remove_pre_uninit(&g_uninit);
66 Sound_Buffer * Sounds::load(XML_Element_c &xml_element,
const String &,
const String &) {
67 const String filepath = xml_element[
"filepath"].to_string();
69 return new Sound_Buffer(filepath);
Sounds & get_Sounds()
Get access to the singleton.
static void init(struct bs2b *bs2b)
A Sound_Buffer Database Singleton.
static void remove_post_reinit(Event::Handler *const &handler)
Sound & get_Sound()
Get access to the singleton.