18 #include "precompiled.h"
137 alSourcef(
m_ALSource, AL_REFERENCE_DISTANCE, 70.0f);
139 alSourcef(
m_ALSource, AL_MAX_DISTANCE, 200.0);
141 alSourcef(
m_ALSource, AL_ROLLOFF_FACTOR, rolls);
158 alSourcef(
m_ALSource, AL_CONE_INNER_ANGLE, innerCone);
160 alSourcef(
m_ALSource, AL_CONE_OUTER_ANGLE, outerCone);
162 alSourcef(
m_ALSource, AL_CONE_OUTER_GAIN, coneGain);
194 alGetSourcei(
m_ALSource, AL_SOURCE_STATE, &proc_state);
197 return (proc_state == AL_PLAYING);
232 pctDone = std::max(0.0, pctDone);
272 alSourcei(
m_ALSource, AL_LOOPING, loops ? AL_TRUE : AL_FALSE);
287 ALenum err = alGetError();
288 if (err != AL_NO_ERROR)
290 if (err == AL_INVALID)
337 alGetSourcei(
m_ALSource, AL_SOURCE_STATE, &proc_state);
338 if (proc_state == AL_PLAYING)
391 #endif // CONFIG2_AUDIO
void SetLocation(const CVector3D &position)
void SetRollOff(ALfloat gain)
void FadeAndDelete(double fadeTime)
ISoundManager * g_SoundManager
Locks a CMutex over this object's lifetime.
virtual Path * GetFileName()
void SetGain(ALfloat gain)
#define UNUSED2(param)
mark a function local variable or parameter as unused and avoid the corresponding compiler warning...
void SetPitch(ALfloat pitch)
virtual void SetLooping(bool loops)
void SetCone(ALfloat innerCone, ALfloat outerCone, ALfloat coneGain)
const float * GetFloatArray() const
virtual void Attach(CSoundData *itemData)
void SetDirection(const CVector3D &direction)
void FadeAndPause(double fadeTime)
static void ReleaseSoundData(CSoundData *theData)
void FadeToIn(ALfloat newVolume, double fadeDuration)
void SetLastPlay(bool last)