#include <audioengine.h>
Inheritance diagram for LLAudioSource:
Definition at line 246 of file audioengine.h.
typedef std::map<LLUUID, LLAudioData *> LLAudioSource::data_map [protected] |
Definition at line 325 of file audioengine.h.
Definition at line 1170 of file audioengine.cpp.
LLAudioSource::~LLAudioSource | ( | ) | [virtual] |
Definition at line 1188 of file audioengine.cpp.
References mChannelp, NULL, and LLAudioChannel::setSource().
void LLAudioSource::addAudioData | ( | LLAudioData * | adp, | |
BOOL | set_current = TRUE | |||
) |
Definition at line 1387 of file audioengine.cpp.
References gAudiop, LLAudioData::getID(), isLoop(), mChannelp, mCurrentDatap, mPreloadMap, mQueuedDatap, mQueueSounds, LLAudioChannel::play(), LLAudioEngine::startNextTransfer(), and LLAudioChannel::updateBuffer().
Referenced by play(), and process_preload_sound().
LLAudioChannel* LLAudioSource::getChannel | ( | ) | const [inline, protected] |
Definition at line 304 of file audioengine.h.
References mChannelp.
Referenced by LLAudioEngine::idle(), and play().
LLAudioBuffer * LLAudioSource::getCurrentBuffer | ( | ) |
Definition at line 1483 of file audioengine.cpp.
References LLAudioData::getBuffer(), mCurrentDatap, and NULL.
Referenced by update(), LLAudioChannelFMOD::updateBuffer(), and LLAudioChannel::updateBuffer().
LLAudioData * LLAudioSource::getCurrentData | ( | ) |
Definition at line 1473 of file audioengine.cpp.
References mCurrentDatap.
Referenced by LLFloaterEventLog::logObject(), LLViewerObject::setAttachedSound(), setupChannel(), LLAudioEngine::startNextTransfer(), and update().
F32 LLAudioSource::getGain | ( | ) | const [inline] |
Definition at line 284 of file audioengine.h.
References mGain.
Referenced by LLAudioChannelFMOD::updateBuffer().
const LLUUID& LLAudioSource::getID | ( | ) | const [inline] |
Definition at line 287 of file audioengine.h.
References mID.
Referenced by LLAudioEngine::addAudioSource(), LLAudioEngine::cleanupAudioSource(), and update().
const LLUUID& LLAudioSource::getOwnerID | ( | ) | [inline] |
LLVector3d LLAudioSource::getPositionGlobal | ( | ) | const [inline] |
Definition at line 279 of file audioengine.h.
References mPositionGlobal.
Referenced by LLAudioChannelFMOD::update3DPosition(), and updatePriority().
F32 LLAudioSource::getPriority | ( | ) | const [inline] |
Definition at line 281 of file audioengine.h.
References mPriority.
Referenced by LLAudioEngine::getFreeChannel(), setupChannel(), and LLAudioEngine::startNextTransfer().
LLAudioData * LLAudioSource::getQueuedData | ( | ) |
Definition at line 1478 of file audioengine.cpp.
References mQueuedDatap.
Referenced by LLAudioEngine::startNextTransfer().
LLVector3 LLAudioSource::getVelocity | ( | ) | const [inline] |
Definition at line 280 of file audioengine.h.
References mVelocity.
Referenced by LLAudioChannelFMOD::update3DPosition().
BOOL LLAudioSource::hasPendingPreloads | ( | ) | const |
Definition at line 1455 of file audioengine.cpp.
References FALSE, mPreloadMap, and TRUE.
Referenced by isDone(), and LLViewerObject::setAttachedSound().
BOOL LLAudioSource::isAmbient | ( | ) | const [inline] |
Definition at line 262 of file audioengine.h.
References mAmbient.
Referenced by LLAudioChannelFMOD::update3DPosition(), and updatePriority().
BOOL LLAudioSource::isDone | ( | ) |
Definition at line 1323 of file audioengine.cpp.
References FALSE, LLFrameTimer::getElapsedTimeF32(), hasPendingPreloads(), isLoop(), LLAudioChannel::isPlaying(), mAgeTimer, mChannelp, mPlayedOnce, mQueuedDatap, and TRUE.
Referenced by LLViewerObject::setAttachedSound().
BOOL LLAudioSource::isLoop | ( | ) | const [inline] |
Definition at line 265 of file audioengine.h.
References mLoop.
Referenced by addAudioData(), isDone(), LLViewerObject::setAttachedSound(), LLAudioChannelFMOD::updateBuffer(), and LLViewerObject::updateLOD().
BOOL LLAudioSource::isQueueSounds | ( | ) | const [inline] |
BOOL LLAudioSource::isSyncMaster | ( | ) | const [inline] |
BOOL LLAudioSource::isSyncSlave | ( | ) | const [inline] |
Definition at line 271 of file audioengine.h.
References mSyncSlave.
Referenced by LLAudioEngine::idle(), and play().
Definition at line 1278 of file audioengine.cpp.
References addAudioData(), FALSE, gAudiop, LLAudioEngine::getAudioData(), getChannel(), LLUUID::isNull(), isSyncSlave(), mAgeTimer, NULL, LLAudioChannel::play(), LLFrameTimer::reset(), setChannel(), LLAudioChannel::setSource(), setupChannel(), LLAudioChannel::setWaiting(), TRUE, and LLAudioEngine::updateBufferForData().
Referenced by LLViewerObject::setAttachedSound(), LLAudioEngine::triggerSound(), and update().
Definition at line 261 of file audioengine.h.
References mAmbient.
Referenced by LLAudioSourceVO::LLAudioSourceVO(), and LLAudioEngine::triggerSound().
void LLAudioSource::setChannel | ( | LLAudioChannel * | channelp | ) | [protected] |
Definition at line 1199 of file audioengine.cpp.
References mChannelp.
Referenced by LLAudioEngine::getFreeChannel(), LLAudioEngine::idle(), play(), setupChannel(), and LLAudioChannel::~LLAudioChannel().
Definition at line 264 of file audioengine.h.
References mLoop.
Referenced by LLViewerObject::setAttachedSound().
Definition at line 276 of file audioengine.h.
References mPlayedOnce.
Referenced by LLAudioChannelFMOD::play().
void LLAudioSource::setPositionGlobal | ( | const LLVector3d & | position_global | ) | [inline] |
Definition at line 278 of file audioengine.h.
References mPositionGlobal.
Referenced by LLAudioEngine::triggerSound().
Definition at line 273 of file audioengine.h.
References mQueueSounds.
Referenced by LLViewerObject::setAttachedSound().
Definition at line 267 of file audioengine.h.
References mSyncMaster.
Referenced by LLViewerObject::setAttachedSound().
Definition at line 270 of file audioengine.h.
References mSyncSlave.
Referenced by LLViewerObject::setAttachedSound().
BOOL LLAudioSource::setupChannel | ( | ) |
Definition at line 1244 of file audioengine.cpp.
References FALSE, gAudiop, LLAudioData::getBuffer(), getCurrentData(), LLAudioEngine::getFreeChannel(), getPriority(), mChannelp, setChannel(), LLAudioChannel::setSource(), TRUE, and updatePriority().
Referenced by play().
void LLAudioSource::update | ( | ) | [virtual] |
Reimplemented in LLAudioSourceVO.
Definition at line 1210 of file audioengine.cpp.
References getCurrentBuffer(), getCurrentData(), getID(), and play().
Referenced by LLAudioSourceVO::update().
void LLAudioSource::updatePriority | ( | ) |
Definition at line 1226 of file audioengine.cpp.
References dist_vec(), f, gAudiop, LLAudioEngine::getListenerPos(), getPositionGlobal(), isAmbient(), llmax(), mGain, and mPriority.
Referenced by setupChannel(), and LLAudioEngine::triggerSound().
friend class LLAudioChannel [friend] |
Definition at line 301 of file audioengine.h.
friend class LLAudioEngine [friend] |
Definition at line 300 of file audioengine.h.
LLFrameTimer LLAudioSource::mAgeTimer [protected] |
BOOL LLAudioSource::mAmbient [protected] |
LLAudioChannel* LLAudioSource::mChannelp [protected] |
Definition at line 321 of file audioengine.h.
Referenced by addAudioData(), getChannel(), isDone(), setChannel(), setupChannel(), and ~LLAudioSource().
LLAudioData* LLAudioSource::mCurrentDatap [protected] |
Definition at line 322 of file audioengine.h.
Referenced by addAudioData(), getCurrentBuffer(), and getCurrentData().
F32 LLAudioSource::mGain [protected] |
Definition at line 310 of file audioengine.h.
Referenced by getGain(), setGain(), LLAudioSourceVO::updateGain(), and updatePriority().
LLUUID LLAudioSource::mID [protected] |
BOOL LLAudioSource::mLoop [protected] |
LLUUID LLAudioSource::mOwnerID [protected] |
Definition at line 308 of file audioengine.h.
Referenced by getOwnerID(), and LLAudioSourceVO::updateGain().
BOOL LLAudioSource::mPlayedOnce [protected] |
LLVector3d LLAudioSource::mPositionGlobal [protected] |
Definition at line 317 of file audioengine.h.
Referenced by getPositionGlobal(), setPositionGlobal(), and LLAudioSourceVO::update().
data_map LLAudioSource::mPreloadMap [protected] |
Definition at line 326 of file audioengine.h.
Referenced by addAudioData(), hasPendingPreloads(), and LLAudioEngine::startNextTransfer().
F32 LLAudioSource::mPriority [protected] |
LLAudioData* LLAudioSource::mQueuedDatap [protected] |
Definition at line 323 of file audioengine.h.
Referenced by addAudioData(), getQueuedData(), and isDone().
BOOL LLAudioSource::mQueueSounds [protected] |
Definition at line 315 of file audioengine.h.
Referenced by addAudioData(), isQueueSounds(), and setQueueSounds().
BOOL LLAudioSource::mSyncMaster [protected] |
BOOL LLAudioSource::mSyncSlave [protected] |
LLVector3 LLAudioSource::mVelocity [protected] |
Definition at line 318 of file audioengine.h.
Referenced by getVelocity(), and LLAudioSourceVO::update().