zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Zeni::Sounds Class Reference

A Sound_Buffer Database Singleton. More...

#include <Sounds.h>

Inherits Zeni::Singleton< Sounds >, and Zeni::Database< TYPE >.

Friends

class Singleton< Sounds >
 

Additional Inherited Members

- Public Member Functions inherited from Zeni::Singleton< Sounds >
void fax_post_reinit (Event::Handler *const &handler)
 
void fax_pre_uninit (Event::Handler *const &handler)
 
void give_post_reinit (Event::Handler *const &handler)
 
void give_pre_uninit (Event::Handler *const &handler)
 
void lend_post_reinit (Event::Handler *const &handler)
 
void lend_pre_uninit (Event::Handler *const &handler)
 
- Public Member Functions inherited from Zeni::Database< TYPE >
 Database (const String &filename, const String &xml_identifier)
 
virtual ~Database ()
 
void clear (const String &name, const String &filename="")
 Clear an entry. More...
 
void clear ()
 Permanently clear all resources. More...
 
unsigned long find (const String &name) const
 Get an id by name, without throwing an Error. More...
 
bool find (const unsigned long &id) const
 Check to see that an id is valid. More...
 
unsigned long get_id (const String &name) const
 Get an id by name, possibly throwing an Error. More...
 
unsigned long give (const String &name, TYPE *const &type, const bool &keep, const String &filename="")
 Add an entry (which it will later delete) More...
 
unsigned long lend (const String &name, TYPE *const &type, const bool &keep)
 Add an entry (which it will NEVER delete) More...
 
void load_file (const String &filename)
 Load all resources from a given file, giving them highest priority. More...
 
void lose_resources ()
 Wipe losable resources and prepare to reload them when they are next needed. More...
 
const bool & lost_resources ()
 Check to see if resources have been lost. More...
 
TYPEoperator[] (const String &name) const
 Get a TYPE by name. More...
 
TYPEoperator[] (const unsigned long &id) const
 Get a TYPE by id. More...
 
void reload ()
 lose_resources + init More...
 
void unload_file (const String &filename)
 Unload all resources from a given file, reloading lower priority resources. More...
 
void unlose_resources ()
 If resources have been lost, then reload them. More...
 
- Static Public Member Functions inherited from Zeni::Singleton< Sounds >
static void completely_destroy ()
 
static void destroy ()
 
static Soundsget ()
 
static bool is_initialized ()
 
static void remove_post_reinit (Event::Handler *const &handler)
 
static void remove_pre_uninit (Event::Handler *const &handler)
 
- Protected Member Functions inherited from Zeni::Singleton< Sounds >
 Singleton ()
 
virtual ~Singleton ()
 
- Protected Member Functions inherited from Zeni::Database< TYPE >
bool give_priority (const String &name, const bool &lent, const bool &keep, const String &filename="")
 If 'lent', 'keep', and 'filename' match, give priority over other 'name' entries. More...
 
void init ()
 
void uninit ()
 

Detailed Description

A Sound_Buffer Database Singleton.

The Sounds Singleton stores Sound_Buffers to be played from Sound_Sources.

Author
bazald

Contact: bazal.nosp@m.d@ze.nosp@m.nipex.nosp@m..com

Definition at line 48 of file Sounds.h.

Friends And Related Function Documentation

friend class Singleton< Sounds >
friend

Definition at line 49 of file Sounds.h.


The documentation for this class was generated from the following files: