47 class ZENI_AUDIO_DLL Sound;
50 ZENI_AUDIO_EXT
template class ZENI_AUDIO_DLL Singleton<Sound>;
56 static Sound * create();
69 void set_listener_position(
const Point3f &position);
70 void set_listener_velocity(
const Vector3f &velocity);
71 void set_listener_forward_and_up(
const Vector3f &forward,
const Vector3f &up);
72 void set_listener_gain(
const float &gain);
73 void set_listener_muted(
const bool &muted);
75 Point3f get_listener_position()
const;
76 Vector3f get_listener_velocity()
const;
77 std::pair<Vector3f, Vector3f> get_listener_forward_and_up()
const;
78 inline float get_listener_gain()
const;
79 inline bool is_listener_muted()
const;
85 inline bool playing_BGM();
86 inline bool paused_BGM();
87 inline bool stopped_BGM();
88 inline float get_BGM_pitch();
89 inline float get_BGM_gain();
90 inline bool is_BGM_looping();
91 inline float get_BGM_time();
94 inline void play_BGM();
95 inline void pause_BGM();
96 inline void stop_BGM();
97 inline void set_BGM_pitch(
const float &pitch);
98 inline void set_BGM_gain(
const float &gain);
99 inline void set_BGM_looping(
const bool &looping);
100 inline void set_BGM_time(
const float &time);
104 inline void update();
115 void init_BGM_Sound_Stream_AL()
const;
119 float m_listener_gain;
120 bool m_listener_muted;
A 3D Point represented with floats.
Sound & get_Sound()
Get access to the singleton.
A Featureful 3-Space Vector Class.