Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
SoundManager Class Reference
Collaboration diagram for SoundManager:
[legend]

Public Member Functions

void setListener (const glm::vec3 &position, const glm::quat &orientation)
 
std::shared_ptr< Soundcreate (std::string soundFile)
 
std::shared_ptr< Soundplay (std::string soundFile, const glm::vec3 &position, bool relative=false)
 
std::shared_ptr< Soundplay (const SoundProperties &soundProperties, const glm::vec3 &position, bool relative=false)
 
void activate ()
 
void deactivate ()
 
void stopAll ()
 

Static Public Member Functions

static SoundManagercurrent ()
 

Protected Member Functions

sf::SoundBuffer * obtain (std::string soundFile)
 
void cleanUp ()
 
void forcedCleanup ()
 
std::shared_ptr< SoundcreateNullSound ()
 

Protected Attributes

std::unordered_map
< std::string, sf::SoundBuffer * > 
m_buffer
 
std::list< std::shared_ptr
< Sound > > 
m_sounds
 
int m_nextCleanup
 

Static Protected Attributes

static SoundManagers_current
 

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