35 #ifndef ZENI_SOUND_SOURCE_POOL_H
36 #define ZENI_SOUND_SOURCE_POOL_H
47 class Sound_Source_Pool;
50 ZENI_AUDIO_EXT
template class ZENI_AUDIO_DLL Singleton<Sound_Source_Pool>;
66 #pragma warning( push )
67 #pragma warning( disable : 4251 )
69 static Uninit g_uninit;
70 static Reinit g_reinit;
72 #pragma warning( pop )
114 void play_and_destroy(
Sound_Source *
const &sound_source);
120 void destroy_all_hw();
123 #pragma warning( push )
124 #pragma warning( disable : 4251 )
126 std::vector<Sound_Source *> m_handles;
127 std::vector<Sound_Source *> m_playing_and_destroying;
129 #pragma warning( pop )
133 bool delete_m_replacement_policy;
Sound_Source_Pool & get_Sound_Source_Pool()
Get access to the singleton.
#define ZENI_DEFAULT_PITCH
#define ZENI_DEFAULT_GAIN
A 3D Point represented with floats.
A Featureful 3-Space Vector Class.
Point3f listener_position
This class manages Sound_Sources.
virtual ~Replacement_Policy()
void play_sound(const String &sound_name, const float &pitch, const float &gain, const Point3f &position, const Vector3f &velocity)
friend class Sound_Source