54 #ifndef ZENI_SOUND_SOURCE_H
55 #define ZENI_SOUND_SOURCE_H
67 class ZENI_AUDIO_DLL Sound_Source_Pool;
81 const bool &looping =
false);
92 void set_position(
const Point3f &position);
93 void set_velocity(
const Vector3f &velocity);
94 void set_looping(
const bool &looping);
95 void set_time(
const float &time);
101 float get_duration()
const;
102 float get_pitch()
const;
103 float get_gain()
const;
106 bool is_looping()
const;
108 float get_reference_distance()
const;
109 float get_max_distance()
const;
110 float get_rolloff()
const;
116 STATE get_state()
const;
117 bool is_playing()
const;
118 bool is_paused()
const;
119 bool is_stopped()
const;
127 const bool &looping =
false);
134 SLDataLocator_OutputMix loc_outmix;
137 SLObjectItf fdPlayerObject;
138 SLPlayItf fdPlayerPlay;
139 SLSeekItf fdPlayerSeek;
140 SLMuteSoloItf fdPlayerMuteSolo;
141 SLVolumeItf fdPlayerVolume;
160 const bool &looping =
false);
167 inline void set_position(
const Point3f &position);
168 inline void set_velocity(
const Vector3f &velocity);
169 inline void set_looping(
const bool &looping);
170 inline void set_time(
const float &time);
175 inline int get_priority()
const;
176 inline Time_HQ get_unstop_time()
const;
178 inline float get_duration()
const;
179 inline float get_pitch()
const;
180 inline float get_gain()
const;
181 inline Point3f get_position()
const;
182 inline Vector3f get_velocity()
const;
183 inline bool is_looping()
const;
185 inline float get_reference_distance()
const;
186 inline float get_max_distance()
const;
187 inline float get_rolloff()
const;
193 inline bool is_playing()
const;
194 inline bool is_paused()
const;
195 inline bool is_stopped()
const;
197 float calculate_gain(
const Point3f &listener_position)
const;
199 inline bool is_assigned()
const;
205 void update_state()
const;
213 mutable float m_duration;
219 float m_reference_distance;
220 float m_max_distance;
224 mutable float m_play_position;
226 mutable bool m_playing;
227 mutable bool m_paused;
228 mutable bool m_stopped;
230 bool m_remove_from_Pool_on_destruction;
Sound_Source_HW_Init_Failure()
A Snapshot of the Timer_HQ.
#define ZENI_DEFAULT_PITCH
static void init(struct bs2b *bs2b)
#define ZENI_DEFAULT_GAIN
A 3D Point represented with floats.
static long get_time(void)
#define ZENI_DEFAULT_MAX_SOUND_DISTANCE
EGLContext EGLenum EGLClientBuffer buffer
A Featureful 3-Space Vector Class.
#define ZENI_DEFAULT_REFERENCE_DISTANCE
#define ZENI_DEFAULT_ROLLOFF
This class manages Sound_Sources.
#define ZENI_DEFAULT_SOUND_PRIORITY
GLsizei GLsizei GLchar * source