#include <audioengine.h>
Inheritance diagram for LLAudioChannel:
Public Member Functions | |
LLAudioChannel () | |
virtual | ~LLAudioChannel () |
virtual void | setSource (LLAudioSource *sourcep) |
LLAudioSource * | getSource () const |
Protected Member Functions | |
virtual void | play ()=0 |
virtual void | playSynced (LLAudioChannel *channelp)=0 |
virtual void | cleanup ()=0 |
virtual BOOL | isPlaying ()=0 |
void | setWaiting (const BOOL waiting) |
BOOL | isWaiting () const |
virtual BOOL | updateBuffer () |
virtual void | update3DPosition ()=0 |
virtual void | updateLoop ()=0 |
Protected Attributes | |
LLAudioSource * | mCurrentSourcep |
LLAudioBuffer * | mCurrentBufferp |
BOOL | mLoopedThisFrame |
BOOL | mWaiting |
Friends | |
class | LLAudioEngine |
class | LLAudioSource |
Definition at line 376 of file audioengine.h.
LLAudioChannel::LLAudioChannel | ( | ) |
Definition at line 1501 of file audioengine.cpp.
LLAudioChannel::~LLAudioChannel | ( | ) | [virtual] |
Definition at line 1510 of file audioengine.cpp.
References mCurrentBufferp, mCurrentSourcep, NULL, and LLAudioSource::setChannel().
virtual void LLAudioChannel::cleanup | ( | ) | [protected, pure virtual] |
Implemented in LLAudioChannelFMOD.
Referenced by LLAudioEngine::getFreeChannel(), setSource(), and updateBuffer().
LLAudioSource* LLAudioChannel::getSource | ( | ) | const [inline] |
Definition at line 383 of file audioengine.h.
References mCurrentSourcep.
Referenced by LLAudioEngine::getFreeChannel(), LLAudioChannelFMOD::play(), and LLAudioEngine::startNextTransfer().
virtual BOOL LLAudioChannel::isPlaying | ( | ) | [protected, pure virtual] |
Implemented in LLAudioChannelFMOD.
Referenced by LLAudioEngine::idle(), and LLAudioSource::isDone().
BOOL LLAudioChannel::isWaiting | ( | ) | const [inline, protected] |
virtual void LLAudioChannel::play | ( | ) | [protected, pure virtual] |
Implemented in LLAudioChannelFMOD.
Referenced by LLAudioSource::addAudioData(), and LLAudioSource::play().
virtual void LLAudioChannel::playSynced | ( | LLAudioChannel * | channelp | ) | [protected, pure virtual] |
void LLAudioChannel::setSource | ( | LLAudioSource * | sourcep | ) | [virtual] |
Definition at line 1522 of file audioengine.cpp.
References cleanup(), FALSE, mCurrentSourcep, mWaiting, NULL, update3DPosition(), and updateBuffer().
Referenced by LLAudioSource::play(), LLAudioSource::setupChannel(), and LLAudioSource::~LLAudioSource().
Definition at line 392 of file audioengine.h.
References mWaiting.
Referenced by LLAudioEngine::idle(), and LLAudioSource::play().
virtual void LLAudioChannel::update3DPosition | ( | ) | [protected, pure virtual] |
BOOL LLAudioChannel::updateBuffer | ( | ) | [protected, virtual] |
Reimplemented in LLAudioChannelFMOD.
Definition at line 1548 of file audioengine.cpp.
References cleanup(), FALSE, LLAudioSource::getCurrentBuffer(), mCurrentBufferp, mCurrentSourcep, LLAudioBuffer::mInUse, LLAudioBuffer::mLastUseTimer, LLFrameTimer::reset(), and TRUE.
Referenced by LLAudioSource::addAudioData(), LLAudioEngine::idle(), setSource(), and LLAudioChannelFMOD::updateBuffer().
virtual void LLAudioChannel::updateLoop | ( | ) | [protected, pure virtual] |
friend class LLAudioEngine [friend] |
Definition at line 385 of file audioengine.h.
friend class LLAudioSource [friend] |
Definition at line 386 of file audioengine.h.
LLAudioBuffer* LLAudioChannel::mCurrentBufferp [protected] |
Definition at line 400 of file audioengine.h.
Referenced by LLAudioChannelFMOD::cleanup(), LLAudioChannelFMOD::playSynced(), LLAudioChannelFMOD::update3DPosition(), updateBuffer(), and ~LLAudioChannel().
LLAudioSource* LLAudioChannel::mCurrentSourcep [protected] |
Definition at line 399 of file audioengine.h.
Referenced by getSource(), setSource(), LLAudioChannelFMOD::update3DPosition(), LLAudioChannelFMOD::updateBuffer(), updateBuffer(), and ~LLAudioChannel().
BOOL LLAudioChannel::mLoopedThisFrame [protected] |
Definition at line 401 of file audioengine.h.
Referenced by LLAudioEngine::idle(), and LLAudioChannelFMOD::updateLoop().
BOOL LLAudioChannel::mWaiting [protected] |
Definition at line 402 of file audioengine.h.
Referenced by isWaiting(), setSource(), and setWaiting().