LLVoiceClient Class Reference

#include <llvoiceclient.h>

Inheritance diagram for LLVoiceClient:

Inheritance graph
[legend]
Collaboration diagram for LLVoiceClient:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::map< std::string,
participantState * > 
participantMap
typedef std::vector< std::string > deviceList
 serviceTypeUnknown
 serviceTypeA
 serviceTypeB
 serviceTypeC
enum  serviceType { serviceTypeUnknown, serviceTypeA, serviceTypeB, serviceTypeC }

Public Member Functions

 LLVoiceClient ()
 ~LLVoiceClient ()
void connect ()
void connectorCreate ()
void connectorShutdown ()
void requestVoiceAccountProvision (S32 retries=3)
void userAuthorized (const std::string &firstName, const std::string &lastName, const LLUUID &agentID)
void login (const std::string &accountName, const std::string &password)
void loginSendMessage ()
void logout ()
void logoutSendMessage ()
void channelGetListSendMessage ()
void sessionCreateSendMessage ()
void sessionConnectSendMessage ()
void sessionTerminate ()
void sessionTerminateSendMessage ()
void sessionTerminateByHandle (std::string &sessionHandle)
void getCaptureDevicesSendMessage ()
void getRenderDevicesSendMessage ()
void clearCaptureDevices ()
void addCaptureDevice (const std::string &name)
void setCaptureDevice (const std::string &name)
void clearRenderDevices ()
void addRenderDevice (const std::string &name)
void setRenderDevice (const std::string &name)
void tuningStart ()
void tuningStop ()
bool inTuningMode ()
void tuningRenderStartSendMessage (const std::string &name, bool loop)
void tuningRenderStopSendMessage ()
void tuningCaptureStartSendMessage (int duration)
void tuningCaptureStopSendMessage ()
void tuningSetMicVolume (float volume)
void tuningSetSpeakerVolume (float volume)
float tuningGetEnergy (void)
bool deviceSettingsAvailable ()
void refreshDeviceLists (bool clearCurrentList=true)
void daemonDied ()
void giveUp ()
void connectorCreateResponse (int statusCode, std::string &statusString, std::string &connectorHandle)
void loginResponse (int statusCode, std::string &statusString, std::string &accountHandle)
void channelGetListResponse (int statusCode, std::string &statusString)
void sessionCreateResponse (int statusCode, std::string &statusString, std::string &sessionHandle)
void sessionConnectResponse (int statusCode, std::string &statusString)
void sessionTerminateResponse (int statusCode, std::string &statusString)
void logoutResponse (int statusCode, std::string &statusString)
void connectorShutdownResponse (int statusCode, std::string &statusString)
void loginStateChangeEvent (std::string &accountHandle, int statusCode, std::string &statusString, int state)
void sessionNewEvent (std::string &accountHandle, std::string &eventSessionHandle, int state, std::string &nameString, std::string &uriString)
void sessionStateChangeEvent (std::string &uriString, int statusCode, std::string &statusString, std::string &sessionHandle, int state, bool isChannel, std::string &nameString)
void participantStateChangeEvent (std::string &uriString, int statusCode, std::string &statusString, int state, std::string &nameString, std::string &displayNameString, int participantType)
void participantPropertiesEvent (std::string &uriString, int statusCode, std::string &statusString, bool isLocallyMuted, bool isModeratorMuted, bool isSpeaking, int volume, F32 energy)
void auxAudioPropertiesEvent (F32 energy)
void muteListChanged ()
void setCameraPosition (const LLVector3d &position, const LLVector3 &velocity, const LLMatrix3 &rot)
void setAvatarPosition (const LLVector3d &position, const LLVector3 &velocity, const LLMatrix3 &rot)
bool channelFromRegion (LLViewerRegion *region, std::string &name)
void leaveChannel (void)
void setMuteMic (bool muted)
void setUserPTTState (bool ptt)
bool getUserPTTState ()
void toggleUserPTTState (void)
void setVoiceEnabled (bool enabled)
void setUsePTT (bool usePTT)
void setPTTIsToggle (bool PTTIsToggle)
void setPTTKey (std::string &key)
void setEarLocation (S32 loc)
void setVoiceVolume (F32 volume)
void setMicGain (F32 volume)
void setUserVolume (const LLUUID &id, F32 volume)
void setVivoxDebugServerName (std::string &serverName)
void keyDown (KEY key, MASK mask)
void keyUp (KEY key, MASK mask)
void middleMouseState (bool down)
BOOL getVoiceEnabled (const LLUUID &id)
BOOL getIsSpeaking (const LLUUID &id)
F32 getCurrentPower (const LLUUID &id)
BOOL getPTTPressed (const LLUUID &id)
BOOL getOnMuteList (const LLUUID &id)
F32 getUserVolume (const LLUUID &id)
LLString getDisplayName (const LLUUID &id)
BOOL getUsingPTT (const LLUUID &id)
serviceType getServiceType (const LLUUID &id)
std::string getGroupID (const LLUUID &id)
BOOL getAreaVoiceDisabled ()
participantStatefindParticipant (const std::string &uri)
participantStatefindParticipantByAvatar (LLVOAvatar *avatar)
participantStatefindParticipantByID (const LLUUID &id)
participantMapgetParticipantList (void)
void addObserver (LLVoiceClientParticipantObserver *observer)
void removeObserver (LLVoiceClientParticipantObserver *observer)
void addStatusObserver (LLVoiceClientStatusObserver *observer)
void removeStatusObserver (LLVoiceClientStatusObserver *observer)
deviceListgetCaptureDevices ()
deviceListgetRenderDevices ()
void setNonSpatialChannel (const std::string &uri, const std::string &credentials)
void setSpatialChannel (const std::string &uri, const std::string &credentials)
void callUser (LLUUID &uuid)
void answerInvite (std::string &sessionHandle, LLUUID &other_user_id)
void declineInvite (std::string &sessionHandle)
void leaveNonSpatialChannel ()
std::string getCurrentChannel ()
bool inProximalChannel ()
std::string sipURIFromID (const LLUUID &id)

Static Public Member Functions

static void init (LLPumpIO *pump)
static void terminate ()
static bool voiceEnabled ()
static void onAvatarNameLookup (const LLUUID &id, const char *first, const char *last, BOOL is_group, void *user_data)

Static Public Attributes

static F32 OVERDRIVEN_POWER_LEVEL = 0.7f

Protected Member Functions

bool writeString (const std::string &str)

Private Types

typedef std::map< std::string,
std::string > 
channelMap
typedef std::set< LLVoiceClientParticipantObserver * > observer_set_t
typedef std::set< LLVoiceClientStatusObserver * > status_observer_set_t
 stateDisabled
 stateStart
 stateDaemonLaunched
 stateConnecting
 stateIdle
 stateConnectorStart
 stateConnectorStarting
 stateConnectorStarted
 stateMicTuningNoLogin
 stateLoginRetry
 stateLoginRetryWait
 stateNeedsLogin
 stateLoggingIn
 stateLoggedIn
 stateNoChannel
 stateMicTuningLoggedIn
 stateSessionCreate
 stateSessionConnect
 stateJoiningSession
 stateSessionJoined
 stateRunning
 stateLeavingSession
 stateSessionTerminated
 stateLoggingOut
 stateLoggedOut
 stateConnectorStopping
 stateConnectorStopped
 stateConnectorFailed
 stateConnectorFailedWaiting
 stateLoginFailed
 stateLoginFailedWaiting
 stateJoinSessionFailed
 stateJoinSessionFailedWaiting
 stateJail
 earLocCamera = 0
 earLocAvatar
 earLocMixed
enum  state {
  stateDisabled, stateStart, stateDaemonLaunched, stateConnecting,
  stateIdle, stateConnectorStart, stateConnectorStarting, stateConnectorStarted,
  stateMicTuningNoLogin, stateLoginRetry, stateLoginRetryWait, stateNeedsLogin,
  stateLoggingIn, stateLoggedIn, stateNoChannel, stateMicTuningLoggedIn,
  stateSessionCreate, stateSessionConnect, stateJoiningSession, stateSessionJoined,
  stateRunning, stateLeavingSession, stateSessionTerminated, stateLoggingOut,
  stateLoggedOut, stateConnectorStopping, stateConnectorStopped, stateConnectorFailed,
  stateConnectorFailedWaiting, stateLoginFailed, stateLoginFailedWaiting, stateJoinSessionFailed,
  stateJoinSessionFailedWaiting, stateJail
}
enum  { earLocCamera = 0, earLocAvatar, earLocMixed }

Private Member Functions

 LOG_CLASS (LLVoiceClient)
void setState (state inState)
state getState (void)
void stateMachine ()
void closeSocket (void)
participantStateaddParticipant (const std::string &uri)
void removeParticipant (participantState *participant)
void removeAllParticipants ()
void updateMuteState (participantState *participant)
void clearChannelMap (void)
void addChannelMapEntry (std::string &name, std::string &uri)
std::string findChannelURI (std::string &name)
void parcelChanged ()
void switchChannel (std::string uri=std::string(), bool spatial=true, bool noReconnect=false, std::string hash="")
void joinSession (std::string handle, std::string uri)
std::string nameFromAvatar (LLVOAvatar *avatar)
std::string nameFromID (const LLUUID &id)
bool IDFromName (const std::string name, LLUUID &uuid)
std::string displayNameFromAvatar (LLVOAvatar *avatar)
std::string sipURIFromAvatar (LLVOAvatar *avatar)
std::string sipURIFromName (std::string &name)
void sendPositionalUpdate (void)
void buildSetCaptureDevice (std::ostringstream &stream)
void buildSetRenderDevice (std::ostringstream &stream)
void enforceTether (void)
void notifyObservers ()
void notifyStatusObservers (LLVoiceClientStatusObserver::EStatusType status)

Static Private Member Functions

static const char * state2string (state inState)
static void idle (void *user_data)

Private Attributes

state mState
bool mSessionTerminateRequested
bool mNonSpatialChannel
LLHost mDaemonHost
LLSocket::ptr_t mSocket
bool mConnected
LLPumpIOmPump
std::string mAccountName
std::string mAccountPassword
std::string mAccountDisplayName
std::string mAccountFirstName
std::string mAccountLastName
std::string mNextP2PSessionURI
std::string mNextSessionURI
std::string mNextSessionHandle
std::string mNextSessionHash
bool mNextSessionSpatial
bool mNextSessionNoReconnect
bool mNextSessionResetOnClose
std::string mSessionStateEventHandle
std::string mSessionStateEventURI
bool mTuningMode
float mTuningEnergy
std::string mTuningAudioFile
int mTuningMicVolume
bool mTuningMicVolumeDirty
int mTuningSpeakerVolume
bool mTuningSpeakerVolumeDirty
bool mTuningCaptureRunning
std::string mSpatialSessionURI
bool mSessionResetOnClose
int mVivoxErrorStatusCode
std::string mVivoxErrorStatusString
std::string mChannelName
bool mAreaVoiceDisabled
std::string mSessionURI
bool mSessionP2P
S32 mCurrentParcelLocalID
std::string mCurrentRegionName
std::string mConnectorHandle
std::string mAccountHandle
std::string mSessionHandle
U32 mCommandCookie
std::string mAccountServerName
std::string mAccountServerURI
int mLoginRetryCount
participantMap mParticipantMap
bool mParticipantMapChanged
deviceList mCaptureDevices
deviceList mRenderDevices
std::string mCaptureDevice
std::string mRenderDevice
bool mCaptureDeviceDirty
bool mRenderDeviceDirty
channelMap mChannelMap
bool mSpatialCoordsDirty
LLVector3d mCameraPosition
LLVector3d mCameraRequestedPosition
LLVector3 mCameraVelocity
LLMatrix3 mCameraRot
LLVector3d mAvatarPosition
LLVector3 mAvatarVelocity
LLMatrix3 mAvatarRot
bool mPTTDirty
bool mPTT
bool mUsePTT
bool mPTTIsMiddleMouse
KEY mPTTKey
bool mPTTIsToggle
bool mUserPTTState
bool mMuteMic
bool mVolumeDirty
S32 mEarLocation
bool mSpeakerVolumeDirty
bool mSpeakerMuteDirty
int mSpeakerVolume
int mMicVolume
bool mMicVolumeDirty
bool mVoiceEnabled
bool mWriteInProgress
std::string mWriteString
size_t mWriteOffset
LLTimer mUpdateTimer
observer_set_t mObservers
status_observer_set_t mStatusObservers

Friends

class LLVivoxProtocolParser

Classes

struct  participantState

Detailed Description

Definition at line 79 of file llvoiceclient.h.


Member Typedef Documentation

typedef std::map<std::string, std::string> LLVoiceClient::channelMap [private]

Definition at line 436 of file llvoiceclient.h.

typedef std::vector<std::string> LLVoiceClient::deviceList

Definition at line 272 of file llvoiceclient.h.

typedef std::set<LLVoiceClientParticipantObserver*> LLVoiceClient::observer_set_t [private]

Definition at line 513 of file llvoiceclient.h.

typedef std::map<std::string, participantState*> LLVoiceClient::participantMap

Definition at line 257 of file llvoiceclient.h.

typedef std::set<LLVoiceClientStatusObserver*> LLVoiceClient::status_observer_set_t [private]

Definition at line 518 of file llvoiceclient.h.


Member Enumeration Documentation

anonymous enum [private]

Enumerator:
earLocCamera 
earLocAvatar 
earLocMixed 

Definition at line 490 of file llvoiceclient.h.

enum LLVoiceClient::serviceType

Enumerator:
serviceTypeUnknown 
serviceTypeA 
serviceTypeB 
serviceTypeC 

Definition at line 95 of file llvoiceclient.h.

enum LLVoiceClient::state [private]

Enumerator:
stateDisabled 
stateStart 
stateDaemonLaunched 
stateConnecting 
stateIdle 
stateConnectorStart 
stateConnectorStarting 
stateConnectorStarted 
stateMicTuningNoLogin 
stateLoginRetry 
stateLoginRetryWait 
stateNeedsLogin 
stateLoggingIn 
stateLoggedIn 
stateNoChannel 
stateMicTuningLoggedIn 
stateSessionCreate 
stateSessionConnect 
stateJoiningSession 
stateSessionJoined 
stateRunning 
stateLeavingSession 
stateSessionTerminated 
stateLoggingOut 
stateLoggedOut 
stateConnectorStopping 
stateConnectorStopped 
stateConnectorFailed 
stateConnectorFailedWaiting 
stateLoginFailed 
stateLoginFailedWaiting 
stateJoinSessionFailed 
stateJoinSessionFailedWaiting 
stateJail 

Definition at line 302 of file llvoiceclient.h.


Constructor & Destructor Documentation

LLVoiceClient::LLVoiceClient (  ) 

Definition at line 818 of file llvoiceclient.cpp.

References LLCallbackList::addFunction(), LLObservable::addListener(), LLControlGroup::getBOOL(), LLControlGroup::getControl(), LLControlGroup::getF32(), LLControlGroup::getS32(), LLControlGroup::getString(), gIdleCallbacks, gSavedSettings, gVoiceClient, idle(), mAreaVoiceDisabled, mCaptureDeviceDirty, mCommandCookie, mCurrentParcelLocalID, mEarLocation, mLoginRetryCount, mMicVolume, mMicVolumeDirty, mMuteMic, mNextSessionNoReconnect, mNextSessionResetOnClose, mNextSessionSpatial, mNonSpatialChannel, mParticipantMapChanged, mPTT, mPTTDirty, mPTTIsToggle, mPump, mRenderDeviceDirty, mSessionP2P, mSessionResetOnClose, mSessionTerminateRequested, mSpatialCoordsDirty, mSpeakerVolume, mSpeakerVolumeDirty, mTuningCaptureRunning, mTuningEnergy, mTuningMicVolume, mTuningMicVolumeDirty, mTuningMode, mTuningSpeakerVolume, mTuningSpeakerVolumeDirty, mUsePTT, mUserPTTState, mVivoxErrorStatusCode, mVoiceEnabled, mVolumeDirty, mWriteInProgress, NULL, setCaptureDevice(), setPTTKey(), setRenderDevice(), setState(), setVoiceVolume(), stateDisabled, and voice_prefs_listener.

LLVoiceClient::~LLVoiceClient (  ) 

Definition at line 910 of file llvoiceclient.cpp.


Member Function Documentation

void LLVoiceClient::addCaptureDevice ( const std::string &  name  ) 

Definition at line 2094 of file llvoiceclient.cpp.

References llendl, llinfos, and mCaptureDevices.

Referenced by LLVivoxProtocolParser::EndTag().

void LLVoiceClient::addChannelMapEntry ( std::string &  name,
std::string &  uri 
) [private]

Definition at line 3178 of file llvoiceclient.cpp.

References mChannelMap.

Referenced by LLVivoxProtocolParser::EndTag().

void LLVoiceClient::addObserver ( LLVoiceClientParticipantObserver observer  ) 

Definition at line 3918 of file llvoiceclient.cpp.

References mObservers.

LLVoiceClient::participantState * LLVoiceClient::addParticipant ( const std::string &  uri  )  [private]

Definition at line 3030 of file llvoiceclient.cpp.

References IDFromName(), llendl, llinfos, LLVoiceClient::participantState::mAvatarID, LLVoiceClient::participantState::mAvatarIDValid, mParticipantMap, mParticipantMapChanged, LLVoiceClient::participantState::mURI, NULL, and updateMuteState().

Referenced by participantStateChangeEvent().

void LLVoiceClient::addRenderDevice ( const std::string &  name  ) 

Definition at line 2134 of file llvoiceclient.cpp.

References llendl, llinfos, and mRenderDevices.

Referenced by LLVivoxProtocolParser::EndTag().

void LLVoiceClient::addStatusObserver ( LLVoiceClientStatusObserver observer  ) 

Definition at line 3941 of file llvoiceclient.cpp.

References mStatusObservers.

Referenced by LLVoiceChannel::LLVoiceChannel().

void LLVoiceClient::answerInvite ( std::string &  sessionHandle,
LLUUID other_user_id 
)

Definition at line 3340 of file llvoiceclient.cpp.

References joinSession(), and sipURIFromID().

Referenced by LLVoiceChannelP2P::activate().

void LLVoiceClient::auxAudioPropertiesEvent ( F32  energy  ) 

Definition at line 3001 of file llvoiceclient.cpp.

References mTuningEnergy.

Referenced by LLVivoxProtocolParser::processResponse().

void LLVoiceClient::buildSetCaptureDevice ( std::ostringstream &  stream  )  [private]

Definition at line 2540 of file llvoiceclient.cpp.

References llendl, llinfos, mCaptureDevice, and mCommandCookie.

Referenced by sendPositionalUpdate(), and stateMachine().

void LLVoiceClient::buildSetRenderDevice ( std::ostringstream &  stream  )  [private]

Definition at line 2551 of file llvoiceclient.cpp.

References llendl, llinfos, mCommandCookie, and mRenderDevice.

Referenced by sendPositionalUpdate(), and stateMachine().

void LLVoiceClient::callUser ( LLUUID uuid  ) 

Definition at line 3333 of file llvoiceclient.cpp.

References sipURIFromID(), and switchChannel().

Referenced by LLVoiceChannelP2P::activate(), and LLVoiceChannelP2P::setSessionHandle().

bool LLVoiceClient::channelFromRegion ( LLViewerRegion region,
std::string &  name 
)

Definition at line 3548 of file llvoiceclient.cpp.

References LLViewerRegion::getName().

void LLVoiceClient::channelGetListResponse ( int  statusCode,
std::string &  statusString 
)

Definition at line 2612 of file llvoiceclient.cpp.

References findChannelURI(), llendl, llinfos, llwarns, mChannelName, and switchChannel().

Referenced by LLVivoxProtocolParser::processResponse().

void LLVoiceClient::channelGetListSendMessage (  ) 

Definition at line 1937 of file llvoiceclient.cpp.

References mAccountHandle, mCommandCookie, and writeString().

void LLVoiceClient::clearCaptureDevices (  ) 

Definition at line 2087 of file llvoiceclient.cpp.

References llendl, llinfos, and mCaptureDevices.

Referenced by refreshDeviceLists(), and LLVivoxProtocolParser::StartTag().

void LLVoiceClient::clearChannelMap ( void   )  [private]

Definition at line 3173 of file llvoiceclient.cpp.

References mChannelMap.

void LLVoiceClient::clearRenderDevices (  ) 

Definition at line 2127 of file llvoiceclient.cpp.

References llendl, llinfos, and mRenderDevices.

Referenced by refreshDeviceLists(), and LLVivoxProtocolParser::StartTag().

void LLVoiceClient::closeSocket ( void   )  [private]

Definition at line 1893 of file llvoiceclient.cpp.

References mConnected, and mSocket.

Referenced by daemonDied(), giveUp(), stateMachine(), and terminate().

void LLVoiceClient::connect (  ) 

void LLVoiceClient::connectorCreate (  ) 

Definition at line 991 of file llvoiceclient.cpp.

References gDirUtilp, LLDir::getExpandedFilename(), LLControlGroup::getString(), gSavedSettings, LL_PATH_LOGS, llendl, llinfos, mAccountServerURI, mCommandCookie, setState(), stateConnectorStarting, and writeString().

Referenced by stateMachine().

void LLVoiceClient::connectorCreateResponse ( int  statusCode,
std::string &  statusString,
std::string &  connectorHandle 
)

Definition at line 2565 of file llvoiceclient.cpp.

References getState(), llendl, llwarns, mConnectorHandle, setState(), stateConnectorFailed, stateConnectorStarted, and stateConnectorStarting.

Referenced by LLVivoxProtocolParser::processResponse().

void LLVoiceClient::connectorShutdown (  ) 

Definition at line 1025 of file llvoiceclient.cpp.

References mCommandCookie, mConnectorHandle, setState(), stateConnectorStopping, and writeString().

Referenced by stateMachine(), and terminate().

void LLVoiceClient::connectorShutdownResponse ( int  statusCode,
std::string &  statusString 
)

Definition at line 2749 of file llvoiceclient.cpp.

References getState(), llendl, llwarns, mConnected, setState(), stateConnectorStopped, and stateConnectorStopping.

Referenced by LLVivoxProtocolParser::processResponse().

void LLVoiceClient::daemonDied (  ) 

Definition at line 2305 of file llvoiceclient.cpp.

References closeSocket(), llendl, llwarns, removeAllParticipants(), setState(), and stateDisabled.

Referenced by writeString().

void LLVoiceClient::declineInvite ( std::string &  sessionHandle  ) 

Definition at line 3345 of file llvoiceclient.cpp.

References sessionTerminateByHandle().

bool LLVoiceClient::deviceSettingsAvailable (  ) 

Definition at line 2281 of file llvoiceclient.cpp.

References mConnected, and mRenderDevices.

Referenced by LLPanelDeviceSettings::refresh().

std::string LLVoiceClient::displayNameFromAvatar ( LLVOAvatar avatar  )  [private]

Definition at line 3466 of file llvoiceclient.cpp.

References LLVOAvatar::getFullname().

void LLVoiceClient::enforceTether ( void   )  [private]

Definition at line 3487 of file llvoiceclient.cpp.

References dist_vec(), LLVector3d::magVec(), mAvatarPosition, mCameraPosition, mCameraRequestedPosition, and mSpatialCoordsDirty.

Referenced by stateMachine().

std::string LLVoiceClient::findChannelURI ( std::string &  name  )  [private]

Definition at line 3184 of file llvoiceclient.cpp.

References mChannelMap.

Referenced by channelGetListResponse().

LLVoiceClient::participantState * LLVoiceClient::findParticipant ( const std::string &  uri  ) 

Definition at line 3111 of file llvoiceclient.cpp.

References mConnected, mParticipantMap, and NULL.

Referenced by findParticipantByAvatar(), findParticipantByID(), participantPropertiesEvent(), and participantStateChangeEvent().

LLVoiceClient::participantState * LLVoiceClient::findParticipantByAvatar ( LLVOAvatar avatar  ) 

Definition at line 3131 of file llvoiceclient.cpp.

References findParticipant(), LLVOAvatar::getID(), LLVoiceClient::participantState::mAvatarID, LLVoiceClient::participantState::mAvatarIDValid, mParticipantMapChanged, nameFromAvatar(), NULL, and updateMuteState().

LLVoiceClient::participantState * LLVoiceClient::findParticipantByID ( const LLUUID id  ) 

Definition at line 3161 of file llvoiceclient.cpp.

References findParticipant(), nameFromID(), and NULL.

Referenced by getCurrentPower(), getDisplayName(), getGroupID(), getIsSpeaking(), getOnMuteList(), getPTTPressed(), getServiceType(), getUserVolume(), getUsingPTT(), getVoiceEnabled(), onAvatarNameLookup(), and setUserVolume().

BOOL LLVoiceClient::getAreaVoiceDisabled (  ) 

Definition at line 3913 of file llvoiceclient.cpp.

References mAreaVoiceDisabled.

Referenced by LLStatusBar::refresh().

LLVoiceClient::deviceList * LLVoiceClient::getCaptureDevices (  ) 

Definition at line 2102 of file llvoiceclient.cpp.

References mCaptureDevices.

Referenced by LLPanelDeviceSettings::refresh().

void LLVoiceClient::getCaptureDevicesSendMessage (  ) 

Definition at line 2067 of file llvoiceclient.cpp.

References mCommandCookie, and writeString().

Referenced by refreshDeviceLists(), and stateMachine().

std::string LLVoiceClient::getCurrentChannel (  ) 

Definition at line 3355 of file llvoiceclient.cpp.

References getState(), mSessionTerminateRequested, mSessionURI, and stateRunning.

Referenced by LLVoiceChannel::isActive().

F32 LLVoiceClient::getCurrentPower ( const LLUUID id  ) 

Definition at line 3789 of file llvoiceclient.cpp.

References findParticipantByID(), and LLVoiceClient::participantState::mPower.

Referenced by LLVoiceRemoteCtrl::draw(), LLVOAvatar::idleUpdate(), and LLSpeakerMgr::update().

LLString LLVoiceClient::getDisplayName ( const LLUUID id  ) 

Definition at line 3802 of file llvoiceclient.cpp.

References findParticipantByID(), and LLVoiceClient::participantState::mDisplayName.

std::string LLVoiceClient::getGroupID ( const LLUUID id  ) 

Definition at line 3900 of file llvoiceclient.cpp.

References findParticipantByID(), and LLVoiceClient::participantState::mGroupID.

BOOL LLVoiceClient::getIsSpeaking ( const LLUUID id  ) 

Definition at line 3772 of file llvoiceclient.cpp.

References FALSE, findParticipantByID(), LLFrameTimer::getElapsedTimeF32(), LLVoiceClient::participantState::mIsSpeaking, LLVoiceClient::participantState::mSpeakingTimeout, and SPEAKING_TIMEOUT.

Referenced by LLVoiceRemoteCtrl::draw(), LLVOAvatar::idleUpdate(), and LLSpeakerMgr::update().

BOOL LLVoiceClient::getOnMuteList ( const LLUUID id  ) 

Definition at line 3843 of file llvoiceclient.cpp.

References FALSE, findParticipantByID(), and LLVoiceClient::participantState::mOnMuteList.

Referenced by LLSpeakerMgr::update().

LLVoiceClient::participantMap * LLVoiceClient::getParticipantList ( void   ) 

Definition at line 3105 of file llvoiceclient.cpp.

References mParticipantMap.

Referenced by LLSpeakerMgr::updateSpeakerList().

BOOL LLVoiceClient::getPTTPressed ( const LLUUID id  ) 

Definition at line 3830 of file llvoiceclient.cpp.

References FALSE, findParticipantByID(), and LLVoiceClient::participantState::mPTT.

LLVoiceClient::deviceList * LLVoiceClient::getRenderDevices (  ) 

Definition at line 2141 of file llvoiceclient.cpp.

References mRenderDevices.

Referenced by LLPanelDeviceSettings::refresh().

void LLVoiceClient::getRenderDevicesSendMessage (  ) 

Definition at line 2077 of file llvoiceclient.cpp.

References mCommandCookie, and writeString().

Referenced by refreshDeviceLists(), and stateMachine().

LLVoiceClient::serviceType LLVoiceClient::getServiceType ( const LLUUID id  ) 

Definition at line 3887 of file llvoiceclient.cpp.

References findParticipantByID(), LLVoiceClient::participantState::mServiceType, and serviceTypeUnknown.

state LLVoiceClient::getState ( void   )  [inline, private]

Definition at line 351 of file llvoiceclient.h.

References mState.

Referenced by connectorCreateResponse(), connectorShutdownResponse(), getCurrentChannel(), inProximalChannel(), inTuningMode(), joinSession(), leaveChannel(), login(), loginStateChangeEvent(), logoutResponse(), parcelChanged(), sessionCreateResponse(), sessionStateChangeEvent(), sessionTerminateResponse(), sessionTerminateSendMessage(), stateMachine(), switchChannel(), and tuningStart().

bool LLVoiceClient::getUserPTTState (  ) 

Definition at line 3583 of file llvoiceclient.cpp.

References mUserPTTState.

Referenced by LLVoiceRemoteCtrl::draw().

F32 LLVoiceClient::getUserVolume ( const LLUUID id  ) 

Definition at line 3858 of file llvoiceclient.cpp.

References f, findParticipantByID(), LLVoiceClient::participantState::mUserVolume, S32, and sqrtf.

Referenced by LLFloaterIMPanel::draw(), and LLPanelActiveSpeakers::refreshSpeakers().

BOOL LLVoiceClient::getUsingPTT ( const LLUUID id  ) 

Definition at line 3815 of file llvoiceclient.cpp.

References FALSE, and findParticipantByID().

BOOL LLVoiceClient::getVoiceEnabled ( const LLUUID id  ) 

Definition at line 3758 of file llvoiceclient.cpp.

References FALSE, findParticipantByID(), and TRUE.

Referenced by LLVOAvatar::idleUpdate(), LLVOAvatar::LLVOAvatar(), and LLSpeakerMgr::update().

void LLVoiceClient::giveUp (  ) 

Definition at line 2317 of file llvoiceclient.cpp.

References closeSocket(), removeAllParticipants(), setState(), and stateJail.

Referenced by LLViewerVoiceAccountProvisionResponder::error().

bool LLVoiceClient::IDFromName ( const std::string  name,
LLUUID uuid 
) [private]

Definition at line 3434 of file llvoiceclient.cpp.

References LLUUID::mData, LLStringBase< char >::replaceChar(), and UUID_BYTES.

Referenced by addParticipant(), and sessionNewEvent().

void LLVoiceClient::idle ( void user_data  )  [static, private]

Definition at line 1118 of file llvoiceclient.cpp.

Referenced by LLVoiceClient().

void LLVoiceClient::init ( LLPumpIO pump  )  [static]

Definition at line 918 of file llvoiceclient.cpp.

References LLSingleton< LLVoiceClient >::getInstance(), and mPump.

Referenced by main_loop().

bool LLVoiceClient::inProximalChannel (  ) 

Definition at line 3365 of file llvoiceclient.cpp.

References getState(), mNonSpatialChannel, mSessionTerminateRequested, and stateRunning.

Referenced by LLVOAvatar::idleUpdate(), LLVoiceChannelProximal::isActive(), LLSpeakerMgr::update(), and LLSpeakerMgr::updateSpeakerList().

bool LLVoiceClient::inTuningMode (  ) 

Definition at line 2181 of file llvoiceclient.cpp.

References getState(), stateMicTuningLoggedIn, and stateMicTuningNoLogin.

Referenced by LLPanelDeviceSettings::draw(), tuningCaptureStartSendMessage(), tuningCaptureStopSendMessage(), tuningRenderStartSendMessage(), and tuningRenderStopSendMessage().

void LLVoiceClient::joinSession ( std::string  handle,
std::string  uri 
) [private]

Definition at line 3286 of file llvoiceclient.cpp.

References getState(), mNextP2PSessionURI, mNextSessionHandle, mNextSessionHash, mNextSessionNoReconnect, mNextSessionSpatial, mNextSessionURI, sessionTerminate(), and stateNoChannel.

Referenced by answerInvite().

void LLVoiceClient::keyDown ( KEY  key,
MASK  mask 
)

Definition at line 3703 of file llvoiceclient.cpp.

References LLKeyboard::getKeyDown(), LLKeyboard::getKeyRepeated(), gKeyboard, KEY_NONE, mPTTIsMiddleMouse, mPTTIsToggle, mPTTKey, setUserPTTState(), and toggleUserPTTState().

Referenced by LLViewerWindow::handleTranslatedKeyDown().

void LLVoiceClient::keyUp ( KEY  key,
MASK  mask 
)

Definition at line 3728 of file llvoiceclient.cpp.

References LLKeyboard::getKeyDown(), gKeyboard, KEY_NONE, mPTTIsMiddleMouse, mPTTIsToggle, mPTTKey, and setUserPTTState().

Referenced by LLViewerWindow::handleTranslatedKeyUp().

void LLVoiceClient::leaveChannel ( void   ) 

Definition at line 3563 of file llvoiceclient.cpp.

References getState(), mChannelName, sessionTerminate(), and stateRunning.

Referenced by send_logout_request().

void LLVoiceClient::leaveNonSpatialChannel (  ) 

Definition at line 3350 of file llvoiceclient.cpp.

References mSpatialSessionURI, and switchChannel().

Referenced by LLVoiceChannelProximal::activate(), and LLVoiceChannelGroup::deactivate().

LLVoiceClient::LOG_CLASS ( LLVoiceClient   )  [private]

void LLVoiceClient::login ( const std::string &  accountName,
const std::string &  password 
)

Definition at line 1097 of file llvoiceclient.cpp.

References getState(), llendl, llerrs, llinfos, mAccountName, mAccountPassword, stateLoggedOut, and stateLoggingIn.

Referenced by LLViewerVoiceAccountProvisionResponder::result().

void LLVoiceClient::loginResponse ( int  statusCode,
std::string &  statusString,
std::string &  accountHandle 
)

Definition at line 2583 of file llvoiceclient.cpp.

References llendl, llinfos, llwarns, mAccountHandle, setState(), stateLoginFailed, and stateLoginRetry.

Referenced by LLVivoxProtocolParser::processResponse().

void LLVoiceClient::loginSendMessage (  ) 

Definition at line 1899 of file llvoiceclient.cpp.

References mAccountName, mAccountPassword, mCommandCookie, mConnectorHandle, and writeString().

Referenced by stateMachine().

void LLVoiceClient::loginStateChangeEvent ( std::string &  accountHandle,
int  statusCode,
std::string &  statusString,
int  state 
)

Definition at line 2867 of file llvoiceclient.cpp.

References getState(), llendl, llinfos, setState(), stateLoggedIn, and stateLoggingIn.

Referenced by LLVivoxProtocolParser::processResponse().

void LLVoiceClient::logout (  ) 

Definition at line 1913 of file llvoiceclient.cpp.

References logoutSendMessage(), mAccountPassword, setState(), and stateLoggingOut.

Referenced by stateMachine(), and terminate().

void LLVoiceClient::logoutResponse ( int  statusCode,
std::string &  statusString 
)

Definition at line 2735 of file llvoiceclient.cpp.

References getState(), llendl, llwarns, setState(), stateLoggedOut, and stateLoggingOut.

Referenced by LLVivoxProtocolParser::processResponse().

void LLVoiceClient::logoutSendMessage (  ) 

Definition at line 1920 of file llvoiceclient.cpp.

References mAccountHandle, mCommandCookie, and writeString().

Referenced by logout().

void LLVoiceClient::middleMouseState ( bool  down  ) 

Definition at line 3738 of file llvoiceclient.cpp.

References mPTTIsMiddleMouse, mPTTIsToggle, setUserPTTState(), and toggleUserPTTState().

Referenced by LLViewerWindow::handleMiddleMouseDown(), and LLViewerWindow::handleMiddleMouseUp().

void LLVoiceClient::muteListChanged (  ) 

Definition at line 3007 of file llvoiceclient.cpp.

References mParticipantMap, p, and updateMuteState().

Referenced by LLVoiceClientMuteListObserver::onChange().

std::string LLVoiceClient::nameFromAvatar ( LLVOAvatar avatar  )  [private]

Definition at line 3402 of file llvoiceclient.cpp.

References LLVOAvatar::getID(), and nameFromID().

Referenced by findParticipantByAvatar().

std::string LLVoiceClient::nameFromID ( const LLUUID id  )  [private]

Definition at line 3412 of file llvoiceclient.cpp.

References LLBase64::encode(), LLStringBase< char >::replaceChar(), LLUUID::toCompressedString(), and UUID_BYTES.

Referenced by findParticipantByID(), nameFromAvatar(), sipURIFromAvatar(), sipURIFromID(), and userAuthorized().

void LLVoiceClient::notifyObservers (  )  [private]

Definition at line 3928 of file llvoiceclient.cpp.

References mObservers.

Referenced by onAvatarNameLookup(), and stateMachine().

void LLVoiceClient::notifyStatusObservers ( LLVoiceClientStatusObserver::EStatusType  status  )  [private]

Definition at line 3951 of file llvoiceclient.cpp.

References LLVoiceClientStatusObserver::ERROR_CHANNEL_FULL, LLVoiceClientStatusObserver::ERROR_CHANNEL_LOCKED, LLVoiceClientStatusObserver::ERROR_NOT_AVAILABLE, LLVoiceClientStatusObserver::ERROR_UNKNOWN, llendl, llinfos, mNonSpatialChannel, mSessionURI, mStatusObservers, mVivoxErrorStatusCode, LLVoiceClientStatusObserver::status2string(), and LLVoiceClientStatusObserver::STATUS_LEFT_CHANNEL.

Referenced by stateMachine().

void LLVoiceClient::onAvatarNameLookup ( const LLUUID id,
const char *  first,
const char *  last,
BOOL  is_group,
void user_data 
) [static]

Definition at line 3994 of file llvoiceclient.cpp.

References findParticipantByID(), gVoiceClient, llformat(), LLVoiceClient::participantState::mDisplayName, and notifyObservers().

void LLVoiceClient::parcelChanged (  )  [private]

Definition at line 3198 of file llvoiceclient.cpp.

References gAgent, LLViewerRegion::getCapability(), LLAgent::getRegion(), getState(), llendl, llinfos, mCurrentParcelLocalID, mCurrentRegionName, LLHTTPClient::post(), and stateLoggedIn.

Referenced by sessionStateChangeEvent(), and stateMachine().

void LLVoiceClient::participantPropertiesEvent ( std::string &  uriString,
int  statusCode,
std::string &  statusString,
bool  isLocallyMuted,
bool  isModeratorMuted,
bool  isSpeaking,
int  volume,
F32  energy 
)

Definition at line 2973 of file llvoiceclient.cpp.

References findParticipant(), llendl, llwarns, LLVoiceClient::participantState::mIsSpeaking, LLVoiceClient::participantState::mPower, LLVoiceClient::participantState::mPTT, LLVoiceClient::participantState::mSpeakingTimeout, LLVoiceClient::participantState::mVolume, and LLFrameTimer::reset().

Referenced by LLVivoxProtocolParser::processResponse().

void LLVoiceClient::participantStateChangeEvent ( std::string &  uriString,
int  statusCode,
std::string &  statusString,
int  state,
std::string &  nameString,
std::string &  displayNameString,
int  participantType 
)

Definition at line 2937 of file llvoiceclient.cpp.

References addParticipant(), findParticipant(), llendl, llinfos, LLVoiceClient::participantState::mAvatarID, LLVoiceClient::participantState::mName, NULL, and removeParticipant().

Referenced by LLVivoxProtocolParser::processResponse().

void LLVoiceClient::refreshDeviceLists ( bool  clearCurrentList = true  ) 

Definition at line 2294 of file llvoiceclient.cpp.

References clearCaptureDevices(), clearRenderDevices(), getCaptureDevicesSendMessage(), and getRenderDevicesSendMessage().

Referenced by LLPanelDeviceSettings::onOpen().

void LLVoiceClient::removeAllParticipants (  )  [private]

Definition at line 3095 of file llvoiceclient.cpp.

References llendl, llinfos, mParticipantMap, and removeParticipant().

Referenced by daemonDied(), giveUp(), sessionStateChangeEvent(), and stateMachine().

void LLVoiceClient::removeObserver ( LLVoiceClientParticipantObserver observer  ) 

Definition at line 3923 of file llvoiceclient.cpp.

References mObservers.

void LLVoiceClient::removeParticipant ( participantState participant  )  [private]

Definition at line 3081 of file llvoiceclient.cpp.

References llendl, llinfos, LLVoiceClient::participantState::mAvatarID, mParticipantMap, mParticipantMapChanged, and LLVoiceClient::participantState::mURI.

Referenced by participantStateChangeEvent(), and removeAllParticipants().

void LLVoiceClient::removeStatusObserver ( LLVoiceClientStatusObserver observer  ) 

Definition at line 3946 of file llvoiceclient.cpp.

References mStatusObservers.

Referenced by LLVoiceChannel::~LLVoiceChannel().

void LLVoiceClient::requestVoiceAccountProvision ( S32  retries = 3  ) 

Definition at line 1080 of file llvoiceclient.cpp.

References gAgent, LLViewerRegion::getCapability(), LLAgent::getRegion(), mVoiceEnabled, and LLHTTPClient::post().

Referenced by LLViewerVoiceAccountProvisionResponder::error(), and stateMachine().

void LLVoiceClient::sendPositionalUpdate ( void   )  [private]

Definition at line 2326 of file llvoiceclient.cpp.

References a, buildSetCaptureDevice(), buildSetRenderDevice(), earLocAvatar, earLocCamera, earLocMixed, LLMatrix3::getFwdRow(), LLMatrix3::getLeftRow(), LLMatrix3::getUpRow(), llendl, llinfos, mAvatarPosition, mAvatarRot, mAvatarVelocity, mCameraPosition, mCameraRot, mCameraVelocity, mCaptureDeviceDirty, mCommandCookie, mConnectorHandle, mEarLocation, mMicVolume, mMicVolumeDirty, mParticipantMap, mPTT, mPTTDirty, mRenderDeviceDirty, mSessionHandle, mSpatialCoordsDirty, mSpeakerMuteDirty, mSpeakerVolume, mSpeakerVolumeDirty, LLVector3::mV, mVolumeDirty, p, u, VX, VY, VZ, and writeString().

Referenced by stateMachine().

void LLVoiceClient::sessionConnectResponse ( int  statusCode,
std::string &  statusString 
)

Definition at line 2697 of file llvoiceclient.cpp.

References llendl, llinfos, llwarns, mVivoxErrorStatusCode, mVivoxErrorStatusString, setState(), and stateJoinSessionFailed.

Referenced by LLVivoxProtocolParser::processResponse().

void LLVoiceClient::sessionConnectSendMessage (  ) 

Definition at line 1988 of file llvoiceclient.cpp.

References llendl, llinfos, mCommandCookie, mNextP2PSessionURI, mNextSessionHandle, mNextSessionResetOnClose, mNextSessionSpatial, mNonSpatialChannel, mSessionHandle, mSessionP2P, mSessionResetOnClose, mSessionURI, and writeString().

Referenced by stateMachine().

void LLVoiceClient::sessionCreateResponse ( int  statusCode,
std::string &  statusString,
std::string &  sessionHandle 
)

Definition at line 2639 of file llvoiceclient.cpp.

References getState(), llendl, llinfos, llwarns, mSessionHandle, mVivoxErrorStatusCode, mVivoxErrorStatusString, sessionTerminateByHandle(), setState(), stateJoiningSession, and stateJoinSessionFailed.

Referenced by LLVivoxProtocolParser::processResponse().

void LLVoiceClient::sessionCreateSendMessage (  ) 

Definition at line 1948 of file llvoiceclient.cpp.

References LLURI::escape(), llendl, llinfos, mAccountHandle, mChannelName, mCommandCookie, mNextSessionHash, mNextSessionNoReconnect, mNextSessionResetOnClose, mNextSessionSpatial, mNextSessionURI, mNonSpatialChannel, mSessionP2P, mSessionResetOnClose, mSessionURI, and writeString().

Referenced by stateMachine().

void LLVoiceClient::sessionNewEvent ( std::string &  accountHandle,
std::string &  eventSessionHandle,
int  state,
std::string &  nameString,
std::string &  uriString 
)

Definition at line 2899 of file llvoiceclient.cpp.

References LLIMMgr::computeSessionID(), gIMMgr, IDFromName(), IM_SESSION_P2P_INVITE, LLIMMgr::inviteToSession(), llendl, llinfos, llwarns, and LLStringBase< char >::null.

Referenced by LLVivoxProtocolParser::processResponse().

void LLVoiceClient::sessionStateChangeEvent ( std::string &  uriString,
int  statusCode,
std::string &  statusString,
std::string &  sessionHandle,
int  state,
bool  isChannel,
std::string &  nameString 
)

Definition at line 2765 of file llvoiceclient.cpp.

References getState(), llendl, llinfos, llwarns, mNextSessionHandle, mNextSessionSpatial, mNonSpatialChannel, mSessionHandle, mSessionResetOnClose, mSessionStateEventHandle, mSessionStateEventURI, mVivoxErrorStatusCode, mVivoxErrorStatusString, parcelChanged(), removeAllParticipants(), setState(), state2string(), stateJoiningSession, stateJoinSessionFailed, stateJoinSessionFailedWaiting, stateLeavingSession, stateRunning, stateSessionJoined, and stateSessionTerminated.

Referenced by LLVivoxProtocolParser::processResponse().

void LLVoiceClient::sessionTerminate (  ) 

Definition at line 2012 of file llvoiceclient.cpp.

References mSessionTerminateRequested.

Referenced by joinSession(), leaveChannel(), switchChannel(), and tuningStart().

void LLVoiceClient::sessionTerminateByHandle ( std::string &  sessionHandle  ) 

Definition at line 2053 of file llvoiceclient.cpp.

References llendl, llinfos, mCommandCookie, and writeString().

Referenced by declineInvite(), sessionCreateResponse(), and sessionTerminateSendMessage().

void LLVoiceClient::sessionTerminateResponse ( int  statusCode,
std::string &  statusString 
)

Definition at line 2720 of file llvoiceclient.cpp.

References getState(), llendl, llwarns, setState(), stateLeavingSession, and stateSessionTerminated.

Referenced by LLVivoxProtocolParser::processResponse().

void LLVoiceClient::sessionTerminateSendMessage (  ) 

Definition at line 2017 of file llvoiceclient.cpp.

References getState(), llendl, llinfos, llwarns, mSessionHandle, mSessionURI, sessionTerminateByHandle(), setState(), stateJoiningSession, stateJoinSessionFailed, stateJoinSessionFailedWaiting, stateLeavingSession, stateNoChannel, stateRunning, stateSessionJoined, and stateSessionTerminated.

Referenced by stateMachine(), and terminate().

void LLVoiceClient::setAvatarPosition ( const LLVector3d position,
const LLVector3 velocity,
const LLMatrix3 rot 
)

Definition at line 3527 of file llvoiceclient.cpp.

References dist_vec(), mAvatarPosition, mAvatarRot, mAvatarVelocity, and mSpatialCoordsDirty.

Referenced by LLVOAvatar::updateCharacter().

void LLVoiceClient::setCameraPosition ( const LLVector3d position,
const LLVector3 velocity,
const LLMatrix3 rot 
)

Definition at line 3510 of file llvoiceclient.cpp.

References mCameraRequestedPosition, mCameraRot, mCameraVelocity, and mSpatialCoordsDirty.

Referenced by LLAgent::updateCamera().

void LLVoiceClient::setCaptureDevice ( const std::string &  name  ) 

Definition at line 2107 of file llvoiceclient.cpp.

References mCaptureDevice, and mCaptureDeviceDirty.

Referenced by LLVoiceClientPrefsListener::handleEvent(), and LLVoiceClient().

void LLVoiceClient::setEarLocation ( S32  loc  ) 

Definition at line 3654 of file llvoiceclient.cpp.

References llendl, llinfos, mEarLocation, and mSpatialCoordsDirty.

Referenced by LLVoiceClientPrefsListener::handleEvent().

void LLVoiceClient::setMicGain ( F32  volume  ) 

Definition at line 3680 of file llvoiceclient.cpp.

References f, mMicVolume, and mMicVolumeDirty.

Referenced by audio_update_volume().

void LLVoiceClient::setMuteMic ( bool  muted  ) 

Definition at line 3573 of file llvoiceclient.cpp.

References mMuteMic.

Referenced by audio_update_volume().

void LLVoiceClient::setNonSpatialChannel ( const std::string &  uri,
const std::string &  credentials 
)

Definition at line 3306 of file llvoiceclient.cpp.

References switchChannel().

Referenced by LLVoiceChannelGroup::activate(), and LLVoiceChannelGroup::setChannelInfo().

void LLVoiceClient::setPTTIsToggle ( bool  PTTIsToggle  ) 

Definition at line 3625 of file llvoiceclient.cpp.

References mPTTIsToggle, and mUserPTTState.

Referenced by LLVoiceClientPrefsListener::handleEvent().

void LLVoiceClient::setPTTKey ( std::string &  key  ) 

Definition at line 3637 of file llvoiceclient.cpp.

References KEY_NONE, LLKeyboard::keyFromString(), mPTTIsMiddleMouse, and mPTTKey.

Referenced by LLVoiceClientPrefsListener::handleEvent(), and LLVoiceClient().

void LLVoiceClient::setRenderDevice ( const std::string &  name  ) 

Definition at line 2146 of file llvoiceclient.cpp.

References mRenderDevice, and mRenderDeviceDirty.

Referenced by LLVoiceClientPrefsListener::handleEvent(), and LLVoiceClient().

void LLVoiceClient::setSpatialChannel ( const std::string &  uri,
const std::string &  credentials 
)

Definition at line 3313 of file llvoiceclient.cpp.

References llendl, llinfos, mAreaVoiceDisabled, mNextSessionSpatial, mNonSpatialChannel, mSpatialSessionURI, and switchChannel().

Referenced by LLViewerParcelVoiceInfo::post(), and LLVoiceClientCapResponder::result().

void LLVoiceClient::setState ( state  inState  )  [private]

Definition at line 1202 of file llvoiceclient.cpp.

References llendl, llinfos, mState, and state2string().

Referenced by connectorCreate(), connectorCreateResponse(), connectorShutdown(), connectorShutdownResponse(), daemonDied(), giveUp(), LLVoiceClient(), loginResponse(), loginStateChangeEvent(), logout(), logoutResponse(), sessionConnectResponse(), sessionCreateResponse(), sessionStateChangeEvent(), sessionTerminateResponse(), sessionTerminateSendMessage(), and stateMachine().

void LLVoiceClient::setUsePTT ( bool  usePTT  ) 

Definition at line 3615 of file llvoiceclient.cpp.

References mUsePTT, and mUserPTTState.

Referenced by LLVoiceClientPrefsListener::handleEvent().

void LLVoiceClient::setUserPTTState ( bool  ptt  ) 

Definition at line 3578 of file llvoiceclient.cpp.

References mUserPTTState.

Referenced by keyDown(), keyUp(), middleMouseState(), LLVoiceRemoteCtrl::onBtnTalkHeld(), and LLVoiceRemoteCtrl::onBtnTalkReleased().

void LLVoiceClient::setUserVolume ( const LLUUID id,
F32  volume 
)

Definition at line 3872 of file llvoiceclient.cpp.

References f, findParticipantByID(), llclamp(), LLVoiceClient::participantState::mUserVolume, mVolumeDirty, LLVoiceClient::participantState::mVolumeDirty, S32, and TRUE.

Referenced by LLFloaterIMPanel::onVolumeChange(), and LLPanelActiveSpeakers::onVolumeChange().

void LLVoiceClient::setVivoxDebugServerName ( std::string &  serverName  ) 

Definition at line 3690 of file llvoiceclient.cpp.

References mAccountServerName, and sConnectingToAgni.

Referenced by LLVoiceClientPrefsListener::handleEvent().

void LLVoiceClient::setVoiceEnabled ( bool  enabled  ) 

Definition at line 3593 of file llvoiceclient.cpp.

References LLVoiceChannel::activate(), LLVoiceChannel::getCurrentVoiceChannel(), and mVoiceEnabled.

Referenced by LLVoiceClientPrefsListener::handleEvent(), and stateMachine().

void LLVoiceClient::setVoiceVolume ( F32  volume  ) 

Definition at line 3665 of file llvoiceclient.cpp.

References f, mSpeakerMuteDirty, mSpeakerVolume, and mSpeakerVolumeDirty.

Referenced by audio_update_volume(), and LLVoiceClient().

std::string LLVoiceClient::sipURIFromAvatar ( LLVOAvatar avatar  )  [private]

Definition at line 3388 of file llvoiceclient.cpp.

References LLVOAvatar::getID(), mAccountServerName, and nameFromID().

std::string LLVoiceClient::sipURIFromID ( const LLUUID id  ) 

Definition at line 3377 of file llvoiceclient.cpp.

References mAccountServerName, and nameFromID().

Referenced by answerInvite(), and callUser().

std::string LLVoiceClient::sipURIFromName ( std::string &  name  )  [private]

Definition at line 3471 of file llvoiceclient.cpp.

References mAccountServerName.

static const char* LLVoiceClient::state2string ( state  inState  )  [static, private]

Referenced by sessionStateChangeEvent(), setState(), and switchChannel().

void LLVoiceClient::stateMachine (  )  [private]

Definition at line 1209 of file llvoiceclient.cpp.

References LLPumpIO::addChain(), LLMuteList::addObserver(), buildSetCaptureDevice(), buildSetRenderDevice(), closeSocket(), CONNECT_THROTTLE_SECONDS, connectorCreate(), connectorShutdown(), LLSocket::create(), enforceTether(), LLVoiceClientStatusObserver::ERROR_UNKNOWN, FALSE, gAgent, gAPRPoolp, gDirUtilp, gDisableVoice, gDisconnected, LLViewerParcelMgr::getAgentParcel(), LLDir::getAppRODataDir(), LLViewerRegion::getCapability(), getCaptureDevicesSendMessage(), LLDir::getDirDelimiter(), LLParcel::getLocalID(), LLViewerRegion::getName(), LLAgent::getRegion(), getRenderDevicesSendMessage(), getState(), LLControlGroup::getString(), LLControlGroup::getU32(), gMuteListp, gParcelMgr, gSavedSettings, LLTimer::hasExpired(), i, isGatewayRunning(), killGateway(), llendl, llinfos, LLVivoxProtocolParser, llwarns, LOGIN_RETRY_SECONDS, loginSendMessage(), logout(), mAccountName, mAccountPassword, mAccountServerURI, MAX_LOGIN_RETRIES, mCaptureDevice, mCaptureDeviceDirty, mCommandCookie, mConnected, mCurrentParcelLocalID, mCurrentRegionName, mDaemonHost, mLoginRetryCount, mMuteMic, mNextSessionHandle, mNextSessionSpatial, mNextSessionURI, mNonSpatialChannel, mParticipantMapChanged, mPTT, mPTTDirty, mPump, mRenderDevice, mRenderDeviceDirty, mSessionHandle, mSessionP2P, mSessionTerminateRequested, mSocket, mSpatialCoordsDirty, mSpeakerVolumeDirty, mTuningCaptureRunning, mTuningMicVolume, mTuningMicVolumeDirty, mTuningMode, mTuningSpeakerVolume, mTuningSpeakerVolumeDirty, mUpdateTimer, mUsePTT, mUserPTTState, mutelist_listener, mVivoxErrorStatusCode, mVivoxErrorStatusString, mVoiceEnabled, mVolumeDirty, NEVER_CHAIN_EXPIRY_SECS, notifyObservers(), notifyStatusObservers(), NULL, parcelChanged(), removeAllParticipants(), requestVoiceAccountProvision(), s, S32, sendPositionalUpdate(), sessionConnectSendMessage(), sessionCreateSendMessage(), sessionTerminateSendMessage(), setState(), LLTimer::setTimerExpirySec(), setVoiceEnabled(), sMuteListListener_listening, LLTimer::start(), LLFile::stat(), stateConnecting, stateConnectorFailed, stateConnectorFailedWaiting, stateConnectorStart, stateConnectorStarted, stateConnectorStarting, stateConnectorStopped, stateConnectorStopping, stateDaemonLaunched, stateDisabled, stateIdle, stateJail, stateJoiningSession, stateJoinSessionFailed, stateJoinSessionFailedWaiting, stateLeavingSession, stateLoggedIn, stateLoggedOut, stateLoggingIn, stateLoggingOut, stateLoginFailed, stateLoginFailedWaiting, stateLoginRetry, stateLoginRetryWait, stateMicTuningLoggedIn, stateMicTuningNoLogin, stateNeedsLogin, stateNoChannel, stateRunning, stateSessionConnect, stateSessionCreate, stateSessionJoined, stateSessionTerminated, stateStart, LLVoiceClientStatusObserver::STATUS_JOINED, LLVoiceClientStatusObserver::STATUS_JOINING, LLVoiceClientStatusObserver::STATUS_LEFT_CHANNEL, LLVoiceClientStatusObserver::STATUS_LOGGED_IN, LLVoiceClientStatusObserver::STATUS_LOGIN_RETRY, LLSocket::STREAM_TCP, tuningCaptureStartSendMessage(), tuningCaptureStopSendMessage(), UPDATE_THROTTLE_SECONDS, and writeString().

void LLVoiceClient::switchChannel ( std::string  uri = std::string(),
bool  spatial = true,
bool  noReconnect = false,
std::string  hash = "" 
) [private]

Definition at line 3220 of file llvoiceclient.cpp.

References getState(), llendl, llinfos, mNextP2PSessionURI, mNextSessionHandle, mNextSessionHash, mNextSessionNoReconnect, mNextSessionSpatial, mNextSessionURI, mSessionTerminateRequested, mSessionURI, sessionTerminate(), state2string(), stateJoinSessionFailed, stateJoinSessionFailedWaiting, and stateNoChannel.

Referenced by callUser(), channelGetListResponse(), leaveNonSpatialChannel(), setNonSpatialChannel(), and setSpatialChannel().

void LLVoiceClient::terminate (  )  [static]

Definition at line 924 of file llvoiceclient.cpp.

References closeSocket(), connectorShutdown(), gVoiceClient, logout(), NULL, and sessionTerminateSendMessage().

Referenced by cleanup_app().

void LLVoiceClient::toggleUserPTTState ( void   ) 

Definition at line 3588 of file llvoiceclient.cpp.

References mUserPTTState.

Referenced by keyDown(), middleMouseState(), and LLVoiceRemoteCtrl::onBtnTalkClicked().

void LLVoiceClient::tuningCaptureStartSendMessage ( int  duration  ) 

Definition at line 2225 of file llvoiceclient.cpp.

References inTuningMode(), mCommandCookie, mTuningCaptureRunning, and writeString().

Referenced by stateMachine().

void LLVoiceClient::tuningCaptureStopSendMessage (  ) 

Definition at line 2241 of file llvoiceclient.cpp.

References inTuningMode(), mCommandCookie, mTuningCaptureRunning, and writeString().

Referenced by stateMachine().

float LLVoiceClient::tuningGetEnergy ( void   ) 

Definition at line 2276 of file llvoiceclient.cpp.

References mTuningEnergy.

Referenced by LLPanelDeviceSettings::draw().

void LLVoiceClient::tuningRenderStartSendMessage ( const std::string &  name,
bool  loop 
)

Definition at line 2195 of file llvoiceclient.cpp.

References inTuningMode(), mCommandCookie, mTuningAudioFile, and writeString().

void LLVoiceClient::tuningRenderStopSendMessage (  ) 

Definition at line 2211 of file llvoiceclient.cpp.

References inTuningMode(), mCommandCookie, mTuningAudioFile, and writeString().

void LLVoiceClient::tuningSetMicVolume ( float  volume  ) 

Definition at line 2256 of file llvoiceclient.cpp.

References f, mTuningMicVolume, and mTuningMicVolumeDirty.

Referenced by LLPanelDeviceSettings::refresh().

void LLVoiceClient::tuningSetSpeakerVolume ( float  volume  ) 

Definition at line 2266 of file llvoiceclient.cpp.

References f, mTuningSpeakerVolume, and mTuningSpeakerVolumeDirty.

void LLVoiceClient::tuningStart (  ) 

Definition at line 2167 of file llvoiceclient.cpp.

References getState(), mTuningMode, sessionTerminate(), and stateNoChannel.

Referenced by LLPanelDeviceSettings::onOpen().

void LLVoiceClient::tuningStop (  ) 

Definition at line 2176 of file llvoiceclient.cpp.

References mTuningMode.

Referenced by LLPanelDeviceSettings::onClose().

void LLVoiceClient::updateMuteState ( participantState participant  )  [private]

Definition at line 3067 of file llvoiceclient.cpp.

References LLMute::flagVoiceChat, gMuteListp, LLMuteList::isMuted(), mVolumeDirty, and p.

Referenced by addParticipant(), findParticipantByAvatar(), and muteListChanged().

void LLVoiceClient::userAuthorized ( const std::string &  firstName,
const std::string &  lastName,
const LLUUID agentID 
)

Definition at line 1044 of file llvoiceclient.cpp.

References LLControlGroup::getString(), gSavedSettings, gUserServerChoice, gUserServerName, llendl, llinfos, mAccountDisplayName, mAccountFirstName, mAccountLastName, mAccountName, mAccountServerName, mAccountServerURI, nameFromID(), sConnectingToAgni, LLStringBase< char >::toLower(), USERSERVER_AGNI, and USERSERVER_OTHER.

Referenced by idle_startup().

bool LLVoiceClient::voiceEnabled (  )  [static]

Definition at line 3610 of file llvoiceclient.cpp.

References gDisableVoice, LLControlGroup::getBOOL(), and gSavedSettings.

Referenced by LLFloaterIMPanel::draw(), LLFloaterChatterBox::getCurrentVoiceFloater(), LLSpeakerMgr::isVoiceActive(), LLViewerChatterBoxInvitation::post(), and LLOverlayBar::refresh().

bool LLVoiceClient::writeString ( const std::string &  str  )  [protected]

Definition at line 948 of file llvoiceclient.cpp.

References daemonDied(), llendl, llwarns, MAX_STRING, mConnected, mSocket, and size.

Referenced by channelGetListSendMessage(), connectorCreate(), connectorShutdown(), getCaptureDevicesSendMessage(), getRenderDevicesSendMessage(), loginSendMessage(), logoutSendMessage(), sendPositionalUpdate(), sessionConnectSendMessage(), sessionCreateSendMessage(), sessionTerminateByHandle(), stateMachine(), tuningCaptureStartSendMessage(), tuningCaptureStopSendMessage(), tuningRenderStartSendMessage(), and tuningRenderStopSendMessage().


Friends And Related Function Documentation

friend class LLVivoxProtocolParser [friend]

Definition at line 364 of file llvoiceclient.h.

Referenced by stateMachine().


Member Data Documentation

std::string LLVoiceClient::mAccountDisplayName [private]

Definition at line 368 of file llvoiceclient.h.

Referenced by userAuthorized().

std::string LLVoiceClient::mAccountFirstName [private]

Definition at line 369 of file llvoiceclient.h.

Referenced by userAuthorized().

std::string LLVoiceClient::mAccountHandle [private]

Definition at line 408 of file llvoiceclient.h.

Referenced by channelGetListSendMessage(), loginResponse(), logoutSendMessage(), and sessionCreateSendMessage().

std::string LLVoiceClient::mAccountLastName [private]

Definition at line 370 of file llvoiceclient.h.

Referenced by userAuthorized().

std::string LLVoiceClient::mAccountName [private]

Definition at line 366 of file llvoiceclient.h.

Referenced by login(), loginSendMessage(), stateMachine(), and userAuthorized().

std::string LLVoiceClient::mAccountPassword [private]

Definition at line 367 of file llvoiceclient.h.

Referenced by login(), loginSendMessage(), logout(), and stateMachine().

std::string LLVoiceClient::mAccountServerName [private]

Definition at line 412 of file llvoiceclient.h.

Referenced by setVivoxDebugServerName(), sipURIFromAvatar(), sipURIFromID(), sipURIFromName(), and userAuthorized().

std::string LLVoiceClient::mAccountServerURI [private]

Definition at line 413 of file llvoiceclient.h.

Referenced by connectorCreate(), stateMachine(), and userAuthorized().

bool LLVoiceClient::mAreaVoiceDisabled [private]

Definition at line 400 of file llvoiceclient.h.

Referenced by getAreaVoiceDisabled(), LLVoiceClient(), and setSpatialChannel().

LLVector3d LLVoiceClient::mAvatarPosition [private]

Definition at line 472 of file llvoiceclient.h.

Referenced by enforceTether(), sendPositionalUpdate(), and setAvatarPosition().

LLMatrix3 LLVoiceClient::mAvatarRot [private]

Definition at line 474 of file llvoiceclient.h.

Referenced by sendPositionalUpdate(), and setAvatarPosition().

LLVector3 LLVoiceClient::mAvatarVelocity [private]

Definition at line 473 of file llvoiceclient.h.

Referenced by sendPositionalUpdate(), and setAvatarPosition().

LLVector3d LLVoiceClient::mCameraPosition [private]

Definition at line 467 of file llvoiceclient.h.

Referenced by enforceTether(), and sendPositionalUpdate().

LLVector3d LLVoiceClient::mCameraRequestedPosition [private]

Definition at line 468 of file llvoiceclient.h.

Referenced by enforceTether(), and setCameraPosition().

LLMatrix3 LLVoiceClient::mCameraRot [private]

Definition at line 470 of file llvoiceclient.h.

Referenced by sendPositionalUpdate(), and setCameraPosition().

LLVector3 LLVoiceClient::mCameraVelocity [private]

Definition at line 469 of file llvoiceclient.h.

Referenced by sendPositionalUpdate(), and setCameraPosition().

std::string LLVoiceClient::mCaptureDevice [private]

Definition at line 423 of file llvoiceclient.h.

Referenced by buildSetCaptureDevice(), setCaptureDevice(), and stateMachine().

bool LLVoiceClient::mCaptureDeviceDirty [private]

Definition at line 425 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), setCaptureDevice(), and stateMachine().

deviceList LLVoiceClient::mCaptureDevices [private]

Definition at line 420 of file llvoiceclient.h.

Referenced by addCaptureDevice(), clearCaptureDevices(), and getCaptureDevices().

channelMap LLVoiceClient::mChannelMap [private]

Definition at line 437 of file llvoiceclient.h.

Referenced by addChannelMapEntry(), clearChannelMap(), and findChannelURI().

std::string LLVoiceClient::mChannelName [private]

Definition at line 399 of file llvoiceclient.h.

Referenced by channelGetListResponse(), leaveChannel(), and sessionCreateSendMessage().

U32 LLVoiceClient::mCommandCookie [private]

Definition at line 410 of file llvoiceclient.h.

Referenced by buildSetCaptureDevice(), buildSetRenderDevice(), channelGetListSendMessage(), connectorCreate(), connectorShutdown(), getCaptureDevicesSendMessage(), getRenderDevicesSendMessage(), LLVoiceClient(), loginSendMessage(), logoutSendMessage(), sendPositionalUpdate(), sessionConnectSendMessage(), sessionCreateSendMessage(), sessionTerminateByHandle(), stateMachine(), tuningCaptureStartSendMessage(), tuningCaptureStopSendMessage(), tuningRenderStartSendMessage(), and tuningRenderStopSendMessage().

bool LLVoiceClient::mConnected [private]

Definition at line 359 of file llvoiceclient.h.

Referenced by closeSocket(), connectorShutdownResponse(), deviceSettingsAvailable(), findParticipant(), LLVivoxProtocolParser::process_impl(), stateMachine(), and writeString().

std::string LLVoiceClient::mConnectorHandle [private]

Definition at line 407 of file llvoiceclient.h.

Referenced by connectorCreateResponse(), connectorShutdown(), loginSendMessage(), and sendPositionalUpdate().

S32 LLVoiceClient::mCurrentParcelLocalID [private]

Definition at line 404 of file llvoiceclient.h.

Referenced by LLVoiceClient(), parcelChanged(), and stateMachine().

std::string LLVoiceClient::mCurrentRegionName [private]

Definition at line 405 of file llvoiceclient.h.

Referenced by parcelChanged(), and stateMachine().

LLHost LLVoiceClient::mDaemonHost [private]

Definition at line 357 of file llvoiceclient.h.

Referenced by stateMachine().

S32 LLVoiceClient::mEarLocation [private]

Definition at line 497 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), and setEarLocation().

int LLVoiceClient::mLoginRetryCount [private]

Definition at line 415 of file llvoiceclient.h.

Referenced by LLVoiceClient(), and stateMachine().

int LLVoiceClient::mMicVolume [private]

Definition at line 503 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), and setMicGain().

bool LLVoiceClient::mMicVolumeDirty [private]

Definition at line 504 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), and setMicGain().

bool LLVoiceClient::mMuteMic [private]

Definition at line 484 of file llvoiceclient.h.

Referenced by LLVoiceClient(), setMuteMic(), and stateMachine().

std::string LLVoiceClient::mNextP2PSessionURI [private]

Definition at line 372 of file llvoiceclient.h.

Referenced by joinSession(), sessionConnectSendMessage(), and switchChannel().

std::string LLVoiceClient::mNextSessionHandle [private]

Definition at line 374 of file llvoiceclient.h.

Referenced by joinSession(), sessionConnectSendMessage(), sessionStateChangeEvent(), stateMachine(), and switchChannel().

std::string LLVoiceClient::mNextSessionHash [private]

Definition at line 375 of file llvoiceclient.h.

Referenced by joinSession(), sessionCreateSendMessage(), and switchChannel().

bool LLVoiceClient::mNextSessionNoReconnect [private]

Definition at line 377 of file llvoiceclient.h.

Referenced by joinSession(), LLVoiceClient(), sessionCreateSendMessage(), and switchChannel().

bool LLVoiceClient::mNextSessionResetOnClose [private]

Definition at line 378 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sessionConnectSendMessage(), and sessionCreateSendMessage().

bool LLVoiceClient::mNextSessionSpatial [private]

Definition at line 376 of file llvoiceclient.h.

Referenced by joinSession(), LLVoiceClient(), sessionConnectSendMessage(), sessionCreateSendMessage(), sessionStateChangeEvent(), setSpatialChannel(), stateMachine(), and switchChannel().

std::string LLVoiceClient::mNextSessionURI [private]

Definition at line 373 of file llvoiceclient.h.

Referenced by joinSession(), sessionCreateSendMessage(), stateMachine(), and switchChannel().

bool LLVoiceClient::mNonSpatialChannel [private]

Definition at line 348 of file llvoiceclient.h.

Referenced by inProximalChannel(), LLVoiceClient(), notifyStatusObservers(), sessionConnectSendMessage(), sessionCreateSendMessage(), sessionStateChangeEvent(), setSpatialChannel(), and stateMachine().

observer_set_t LLVoiceClient::mObservers [private]

Definition at line 514 of file llvoiceclient.h.

Referenced by addObserver(), notifyObservers(), and removeObserver().

participantMap LLVoiceClient::mParticipantMap [private]

Definition at line 417 of file llvoiceclient.h.

Referenced by addParticipant(), findParticipant(), getParticipantList(), muteListChanged(), removeAllParticipants(), removeParticipant(), and sendPositionalUpdate().

bool LLVoiceClient::mParticipantMapChanged [private]

Definition at line 418 of file llvoiceclient.h.

Referenced by addParticipant(), findParticipantByAvatar(), LLVoiceClient(), removeParticipant(), and stateMachine().

bool LLVoiceClient::mPTT [private]

Definition at line 477 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), and stateMachine().

bool LLVoiceClient::mPTTDirty [private]

Definition at line 476 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), and stateMachine().

bool LLVoiceClient::mPTTIsMiddleMouse [private]

Definition at line 480 of file llvoiceclient.h.

Referenced by keyDown(), keyUp(), middleMouseState(), and setPTTKey().

bool LLVoiceClient::mPTTIsToggle [private]

Definition at line 482 of file llvoiceclient.h.

Referenced by keyDown(), keyUp(), LLVoiceClient(), middleMouseState(), and setPTTIsToggle().

KEY LLVoiceClient::mPTTKey [private]

Definition at line 481 of file llvoiceclient.h.

Referenced by keyDown(), keyUp(), and setPTTKey().

LLPumpIO* LLVoiceClient::mPump [private]

Definition at line 363 of file llvoiceclient.h.

Referenced by init(), LLVoiceClient(), and stateMachine().

std::string LLVoiceClient::mRenderDevice [private]

Definition at line 424 of file llvoiceclient.h.

Referenced by buildSetRenderDevice(), setRenderDevice(), and stateMachine().

bool LLVoiceClient::mRenderDeviceDirty [private]

Definition at line 426 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), setRenderDevice(), and stateMachine().

deviceList LLVoiceClient::mRenderDevices [private]

Definition at line 421 of file llvoiceclient.h.

Referenced by addRenderDevice(), clearRenderDevices(), deviceSettingsAvailable(), and getRenderDevices().

std::string LLVoiceClient::mSessionHandle [private]

Definition at line 409 of file llvoiceclient.h.

Referenced by sendPositionalUpdate(), sessionConnectSendMessage(), sessionCreateResponse(), sessionStateChangeEvent(), sessionTerminateSendMessage(), and stateMachine().

bool LLVoiceClient::mSessionP2P [private]

Definition at line 402 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sessionConnectSendMessage(), sessionCreateSendMessage(), and stateMachine().

bool LLVoiceClient::mSessionResetOnClose [private]

Definition at line 394 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sessionConnectSendMessage(), sessionCreateSendMessage(), and sessionStateChangeEvent().

std::string LLVoiceClient::mSessionStateEventHandle [private]

Definition at line 380 of file llvoiceclient.h.

Referenced by sessionStateChangeEvent().

std::string LLVoiceClient::mSessionStateEventURI [private]

Definition at line 381 of file llvoiceclient.h.

Referenced by sessionStateChangeEvent().

bool LLVoiceClient::mSessionTerminateRequested [private]

Definition at line 347 of file llvoiceclient.h.

Referenced by getCurrentChannel(), inProximalChannel(), LLVoiceClient(), sessionTerminate(), stateMachine(), and switchChannel().

std::string LLVoiceClient::mSessionURI [private]

Definition at line 401 of file llvoiceclient.h.

Referenced by getCurrentChannel(), notifyStatusObservers(), sessionConnectSendMessage(), sessionCreateSendMessage(), sessionTerminateSendMessage(), and switchChannel().

LLSocket::ptr_t LLVoiceClient::mSocket [private]

Definition at line 358 of file llvoiceclient.h.

Referenced by closeSocket(), stateMachine(), and writeString().

bool LLVoiceClient::mSpatialCoordsDirty [private]

Definition at line 465 of file llvoiceclient.h.

Referenced by enforceTether(), LLVoiceClient(), sendPositionalUpdate(), setAvatarPosition(), setCameraPosition(), setEarLocation(), and stateMachine().

std::string LLVoiceClient::mSpatialSessionURI [private]

Definition at line 392 of file llvoiceclient.h.

Referenced by leaveNonSpatialChannel(), and setSpatialChannel().

bool LLVoiceClient::mSpeakerMuteDirty [private]

Definition at line 500 of file llvoiceclient.h.

Referenced by sendPositionalUpdate(), and setVoiceVolume().

int LLVoiceClient::mSpeakerVolume [private]

Definition at line 501 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), and setVoiceVolume().

bool LLVoiceClient::mSpeakerVolumeDirty [private]

Definition at line 499 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), setVoiceVolume(), and stateMachine().

state LLVoiceClient::mState [private]

Definition at line 346 of file llvoiceclient.h.

Referenced by getState(), and setState().

status_observer_set_t LLVoiceClient::mStatusObservers [private]

Definition at line 519 of file llvoiceclient.h.

Referenced by addStatusObserver(), notifyStatusObservers(), and removeStatusObserver().

std::string LLVoiceClient::mTuningAudioFile [private]

Definition at line 385 of file llvoiceclient.h.

Referenced by tuningRenderStartSendMessage(), and tuningRenderStopSendMessage().

bool LLVoiceClient::mTuningCaptureRunning [private]

Definition at line 390 of file llvoiceclient.h.

Referenced by LLVoiceClient(), stateMachine(), tuningCaptureStartSendMessage(), and tuningCaptureStopSendMessage().

float LLVoiceClient::mTuningEnergy [private]

Definition at line 384 of file llvoiceclient.h.

Referenced by auxAudioPropertiesEvent(), LLVoiceClient(), and tuningGetEnergy().

int LLVoiceClient::mTuningMicVolume [private]

Definition at line 386 of file llvoiceclient.h.

Referenced by LLVoiceClient(), stateMachine(), and tuningSetMicVolume().

bool LLVoiceClient::mTuningMicVolumeDirty [private]

Definition at line 387 of file llvoiceclient.h.

Referenced by LLVoiceClient(), stateMachine(), and tuningSetMicVolume().

bool LLVoiceClient::mTuningMode [private]

Definition at line 383 of file llvoiceclient.h.

Referenced by LLVoiceClient(), stateMachine(), tuningStart(), and tuningStop().

int LLVoiceClient::mTuningSpeakerVolume [private]

Definition at line 388 of file llvoiceclient.h.

Referenced by LLVoiceClient(), stateMachine(), and tuningSetSpeakerVolume().

bool LLVoiceClient::mTuningSpeakerVolumeDirty [private]

Definition at line 389 of file llvoiceclient.h.

Referenced by LLVoiceClient(), stateMachine(), and tuningSetSpeakerVolume().

LLTimer LLVoiceClient::mUpdateTimer [private]

Definition at line 511 of file llvoiceclient.h.

Referenced by stateMachine().

bool LLVoiceClient::mUsePTT [private]

Definition at line 479 of file llvoiceclient.h.

Referenced by LLVoiceClient(), setUsePTT(), and stateMachine().

bool LLVoiceClient::mUserPTTState [private]

Definition at line 483 of file llvoiceclient.h.

Referenced by getUserPTTState(), LLVoiceClient(), setPTTIsToggle(), setUsePTT(), setUserPTTState(), stateMachine(), and toggleUserPTTState().

int LLVoiceClient::mVivoxErrorStatusCode [private]

Definition at line 396 of file llvoiceclient.h.

Referenced by LLVoiceClient(), notifyStatusObservers(), sessionConnectResponse(), sessionCreateResponse(), sessionStateChangeEvent(), and stateMachine().

std::string LLVoiceClient::mVivoxErrorStatusString [private]

Definition at line 397 of file llvoiceclient.h.

Referenced by sessionConnectResponse(), sessionCreateResponse(), sessionStateChangeEvent(), and stateMachine().

bool LLVoiceClient::mVoiceEnabled [private]

Definition at line 506 of file llvoiceclient.h.

Referenced by LLVoiceClient(), requestVoiceAccountProvision(), setVoiceEnabled(), and stateMachine().

bool LLVoiceClient::mVolumeDirty [private]

Definition at line 488 of file llvoiceclient.h.

Referenced by LLVoiceClient(), sendPositionalUpdate(), setUserVolume(), stateMachine(), and updateMuteState().

bool LLVoiceClient::mWriteInProgress [private]

Definition at line 507 of file llvoiceclient.h.

Referenced by LLVoiceClient().

size_t LLVoiceClient::mWriteOffset [private]

Definition at line 509 of file llvoiceclient.h.

std::string LLVoiceClient::mWriteString [private]

Definition at line 508 of file llvoiceclient.h.

F32 LLVoiceClient::OVERDRIVEN_POWER_LEVEL = 0.7f [static]

Definition at line 102 of file llvoiceclient.h.

Referenced by LLVoiceRemoteCtrl::draw(), LLPanelDeviceSettings::draw(), LLPanelActiveSpeakers::refreshSpeakers(), and LLSpeakerMgr::update().


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