LLAudioChannel Class Reference

#include <audioengine.h>

Inheritance diagram for LLAudioChannel:

Inheritance graph
[legend]
Collaboration diagram for LLAudioChannel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLAudioChannel ()
virtual ~LLAudioChannel ()
virtual void setSource (LLAudioSource *sourcep)
LLAudioSourcegetSource () 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

LLAudioSourcemCurrentSourcep
LLAudioBuffermCurrentBufferp
BOOL mLoopedThisFrame
BOOL mWaiting

Friends

class LLAudioEngine
class LLAudioSource

Detailed Description

Definition at line 376 of file audioengine.h.


Constructor & Destructor Documentation

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().


Member Function Documentation

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]

Definition at line 393 of file audioengine.h.

References mWaiting.

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]

Implemented in LLAudioChannelFMOD.

Referenced by LLAudioEngine::idle().

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().

void LLAudioChannel::setWaiting ( const BOOL  waiting  )  [inline, protected]

Definition at line 392 of file audioengine.h.

References mWaiting.

Referenced by LLAudioEngine::idle(), and LLAudioSource::play().

virtual void LLAudioChannel::update3DPosition (  )  [protected, pure virtual]

Implemented in LLAudioChannelFMOD.

Referenced by setSource(), and LLAudioEngine::updateChannels().

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]

Implemented in LLAudioChannelFMOD.

Referenced by LLAudioEngine::updateChannels().


Friends And Related Function Documentation

friend class LLAudioEngine [friend]

Definition at line 385 of file audioengine.h.

friend class LLAudioSource [friend]

Definition at line 386 of file audioengine.h.


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:10 2010 for Second Life Viewer by  doxygen 1.4.7