LLAudioEngine_FMOD Class Reference

#include <audioengine_fmod.h>

Inheritance diagram for LLAudioEngine_FMOD:

Inheritance graph
[legend]
Collaboration diagram for LLAudioEngine_FMOD:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLAudioEngine_FMOD ()
virtual ~LLAudioEngine_FMOD ()
virtual BOOL init (const S32 num_channels, void *user_data)
virtual void allocateListener ()
virtual void shutdown ()
virtual void idle (F32 max_decode_time=0.f)
virtual void initInternetStream ()
virtual void startInternetStream (const char *url)
virtual void updateInternetStream ()
virtual void stopInternetStream ()
virtual void pauseInternetStream (int pause)
virtual int isInternetStreamPlaying ()
virtual void getInternetStreamInfo (char *artist, char *title)
virtual void setInternetStreamGain (F32 vol)
virtual const char * getInternetStreamURL ()
void initWind ()
void cleanupWind ()
void updateWind (LLVector3 direction, F32 camera_height_above_water)

Protected Member Functions

LLAudioBuffercreateBuffer ()
LLAudioChannelcreateChannel ()
void setInternalGain (F32 gain)

Static Protected Member Functions

static signed char F_CALLBACKAPI callbackMetaData (char *name, char *value, void *userdata)

Protected Attributes

LLAudioStreamFMODmCurrentInternetStreamp
char mInternetStreamURL [1024]
int mInternetStreamChannel
std::list< LLAudioStreamFMOD * > mDeadStreams
S32 mFadeIn
BOOL mInited
void * mUserData


Detailed Description

Definition at line 46 of file audioengine_fmod.h.


Constructor & Destructor Documentation

LLAudioEngine_FMOD::LLAudioEngine_FMOD (  ) 

Definition at line 98 of file audioengine_fmod.cpp.

References FALSE, mCurrentInternetStreamp, mInited, mInternetStreamChannel, and NULL.

LLAudioEngine_FMOD::~LLAudioEngine_FMOD (  )  [virtual]

Definition at line 106 of file audioengine_fmod.cpp.


Member Function Documentation

BOOL LLAudioEngine_FMOD::init ( const S32  num_channels,
void *  user_data 
) [virtual]

Reimplemented from LLAudioEngine.

Definition at line 111 of file audioengine_fmod.cpp.

References FALSE, FSOUND_Init(), LLAudioEngine::init(), initInternetStream(), LL_DEBUGS, LL_ENDL, LL_INFOS, LL_WARNS, mFadeIn, mInited, NULL, and TRUE.

Here is the call graph for this function:

void LLAudioEngine_FMOD::allocateListener ( void   )  [virtual]

Implements LLAudioEngine.

Definition at line 279 of file audioengine_fmod.cpp.

References llendl, llwarns, and LLAudioEngine::mListenerp.

void LLAudioEngine_FMOD::shutdown (  )  [virtual]

Reimplemented from LLAudioEngine.

Definition at line 289 of file audioengine_fmod.cpp.

References FALSE, gWindDSP, llendl, llinfos, LLAudioEngine::mListenerp, NULL, LLAudioEngine::shutdown(), and stopInternetStream().

Here is the call graph for this function:

void LLAudioEngine_FMOD::idle ( F32  max_decode_time = 0.f  )  [virtual]

Reimplemented from LLAudioEngine.

Definition at line 271 of file audioengine_fmod.cpp.

References LLAudioEngine::idle(), and updateInternetStream().

Here is the call graph for this function:

void LLAudioEngine_FMOD::initInternetStream (  )  [virtual]

Reimplemented from LLAudioEngine.

Definition at line 767 of file audioengine_fmod.cpp.

References mInternetStreamURL.

Referenced by init().

Here is the caller graph for this function:

void LLAudioEngine_FMOD::startInternetStream ( const char *  url  )  [virtual]

Implements LLAudioEngine.

Definition at line 784 of file audioengine_fmod.cpp.

References llendl, llinfos, llwarns, mCurrentInternetStreamp, mInited, mInternetStreamURL, and stopInternetStream().

Referenced by pauseInternetStream().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAudioEngine_FMOD::updateInternetStream (  )  [virtual]

void LLAudioEngine_FMOD::stopInternetStream (  )  [virtual]

Implements LLAudioEngine.

Definition at line 911 of file audioengine_fmod.cpp.

References LLAudioStreamFMOD::getURL(), llendl, llinfos, llwarns, mCurrentInternetStreamp, mDeadStreams, mInternetStreamChannel, NULL, LLAudioStreamFMOD::stopStream(), and TRUE.

Referenced by pauseInternetStream(), shutdown(), startInternetStream(), and updateInternetStream().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLAudioEngine_FMOD::pauseInternetStream ( int  pause  )  [virtual]

Implements LLAudioEngine.

Definition at line 937 of file audioengine_fmod.cpp.

References mCurrentInternetStreamp, mInternetStreamURL, startInternetStream(), and stopInternetStream().

Here is the call graph for this function:

int LLAudioEngine_FMOD::isInternetStreamPlaying (  )  [virtual]

Implements LLAudioEngine.

Definition at line 960 of file audioengine_fmod.cpp.

References mCurrentInternetStreamp, and mInternetStreamURL.

void LLAudioEngine_FMOD::getInternetStreamInfo ( char *  artist,
char *  title 
) [virtual]

Reimplemented from LLAudioEngine.

Definition at line 977 of file audioengine_fmod.cpp.

void LLAudioEngine_FMOD::setInternetStreamGain ( F32  vol  )  [virtual]

Reimplemented from LLAudioEngine.

Definition at line 984 of file audioengine_fmod.cpp.

References llclamp(), llround(), mInternetStreamChannel, and LLAudioEngine::setInternetStreamGain().

Referenced by updateInternetStream().

Here is the call graph for this function:

Here is the caller graph for this function:

const char * LLAudioEngine_FMOD::getInternetStreamURL (  )  [virtual]

Reimplemented from LLAudioEngine.

Definition at line 996 of file audioengine_fmod.cpp.

References mInternetStreamURL.

void LLAudioEngine_FMOD::initWind (  )  [virtual]

Implements LLAudioEngine.

Definition at line 322 of file audioengine_fmod.cpp.

References gWindDSP, LLAudioEngine::mNextWindUpdate, NULL, TRUE, and windCallback().

Here is the call graph for this function:

void LLAudioEngine_FMOD::cleanupWind (  )  [virtual]

Implements LLAudioEngine.

Definition at line 336 of file audioengine_fmod.cpp.

References FALSE, gWindDSP, and NULL.

void LLAudioEngine_FMOD::updateWind ( LLVector3  direction,
F32  camera_height_above_water 
) [virtual]

LLAudioBuffer * LLAudioEngine_FMOD::createBuffer (  )  [protected, virtual]

Implements LLAudioEngine.

Definition at line 310 of file audioengine_fmod.cpp.

LLAudioChannel * LLAudioEngine_FMOD::createChannel (  )  [protected, virtual]

Implements LLAudioEngine.

Definition at line 316 of file audioengine_fmod.cpp.

void LLAudioEngine_FMOD::setInternalGain ( F32  gain  )  [protected, virtual]

Implements LLAudioEngine.

Definition at line 431 of file audioengine_fmod.cpp.

References llclamp(), llround(), mInited, mInternetStreamChannel, and LLAudioEngine::mInternetStreamGain.

Here is the call graph for this function:

signed char F_CALLBACKAPI LLAudioEngine_FMOD::callbackMetaData ( char *  name,
char *  value,
void *  userdata 
) [static, protected]

Definition at line 808 of file audioengine_fmod.cpp.

References TRUE.


Member Data Documentation

Definition at line 88 of file audioengine_fmod.h.

Referenced by stopInternetStream(), and updateInternetStream().

Definition at line 93 of file audioengine_fmod.h.

Referenced by init().

Definition at line 94 of file audioengine_fmod.h.

Referenced by init(), LLAudioEngine_FMOD(), setInternalGain(), and startInternetStream().

void* LLAudioEngine_FMOD::mUserData [protected]

Reimplemented from LLAudioEngine.

Definition at line 97 of file audioengine_fmod.h.


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:39:19 2008 for SecondLife by  doxygen 1.5.5