#include <llvoiceclient.h>
Definition at line 80 of file llvoiceclient.h.
typedef std::map<std::string, participantState*> LLVoiceClient::participantMap |
Definition at line 263 of file llvoiceclient.h.
typedef std::vector<std::string> LLVoiceClient::deviceList |
Definition at line 278 of file llvoiceclient.h.
typedef std::map<std::string, std::string> LLVoiceClient::channelMap [private] |
Definition at line 444 of file llvoiceclient.h.
typedef std::set<LLVoiceClientParticipantObserver*> LLVoiceClient::observer_set_t [private] |
Definition at line 523 of file llvoiceclient.h.
typedef std::set<LLVoiceClientStatusObserver*> LLVoiceClient::status_observer_set_t [private] |
Definition at line 528 of file llvoiceclient.h.
Definition at line 96 of file llvoiceclient.h.
enum LLVoiceClient::state [private] |
Definition at line 308 of file llvoiceclient.h.
anonymous enum [private] |
LLVoiceClient::LLVoiceClient | ( | ) |
Definition at line 792 of file llvoiceclient.cpp.
References LLCallbackList::addFunction(), LLControlGroup::getBOOL(), LLControlGroup::getF32(), LLControlGroup::getS32(), LLControlGroup::getString(), LLControlGroup::getU32(), gIdleCallbacks, gSavedSettings, idle(), mAreaVoiceDisabled, mCaptureDeviceDirty, mCommandCookie, mCurrentParcelLocalID, mEarLocation, mLipSyncEnabled, mLoginRetryCount, mMicVolume, mMicVolumeDirty, mMuteMic, mNextSessionNoReconnect, mNextSessionResetOnClose, mNextSessionSpatial, mNonSpatialChannel, mParticipantMapChanged, mPTT, mPTTDirty, mPTTIsToggle, mPump, mRenderDeviceDirty, mSessionP2P, mSessionResetOnClose, mSessionTerminateRequested, mSpatialCoordsDirty, mSpeakerVolume, mSpeakerVolumeDirty, mTuningEnergy, mTuningMicVolume, mTuningMicVolumeDirty, mTuningMode, mTuningSpeakerVolume, mTuningSpeakerVolumeDirty, mUsePTT, mUserPTTState, mVivoxErrorStatusCode, mVoiceEnabled, mVolumeDirty, mWriteInProgress, NULL, setCaptureDevice(), setPTTKey(), setRenderDevice(), setState(), setVoiceVolume(), stateDisabled, and TRUE.
LLVoiceClient::~LLVoiceClient | ( | ) |
Definition at line 874 of file llvoiceclient.cpp.
LLVoiceClient::LOG_CLASS | ( | LLVoiceClient | ) | [private] |
void LLVoiceClient::init | ( | LLPumpIO * | pump | ) | [static] |
Definition at line 882 of file llvoiceclient.cpp.
References LLSingleton< LLVoiceClient >::getInstance(), and mPump.
Referenced by LLAppViewer::mainLoop().
void LLVoiceClient::terminate | ( | ) | [static] |
Definition at line 888 of file llvoiceclient.cpp.
References closeSocket(), connectorShutdown(), logout(), NULL, and sessionTerminateSendMessage().
Referenced by LLAppViewer::cleanup().
bool LLVoiceClient::writeString | ( | const std::string & | str | ) | [protected] |
Definition at line 912 of file llvoiceclient.cpp.
References daemonDied(), LL_DEBUGS, LL_ENDL, LL_WARNS, MAX_STRING, mConnected, and mSocket.
Referenced by channelGetListSendMessage(), connectorCreate(), connectorShutdown(), getCaptureDevicesSendMessage(), getRenderDevicesSendMessage(), loginSendMessage(), logoutSendMessage(), sendPositionalUpdate(), sessionConnectSendMessage(), sessionCreateSendMessage(), sessionTerminateByHandle(), stateMachine(), tuningCaptureStartSendMessage(), tuningCaptureStopSendMessage(), tuningRenderStartSendMessage(), and tuningRenderStopSendMessage().
void LLVoiceClient::connect | ( | ) |
void LLVoiceClient::connectorCreate | ( | ) |
Definition at line 955 of file llvoiceclient.cpp.
References gDirUtilp, LLDir::getExpandedFilename(), LLControlGroup::getString(), gSavedSettings, LL_DEBUGS, LL_ENDL, LL_PATH_LOGS, mAccountServerURI, mCommandCookie, setState(), stateConnectorStarting, and writeString().
Referenced by stateMachine().
void LLVoiceClient::connectorShutdown | ( | ) |
Definition at line 989 of file llvoiceclient.cpp.
References mCommandCookie, mConnectorHandle, setState(), stateConnectorStopping, and writeString().
Referenced by stateMachine(), and terminate().
void LLVoiceClient::requestVoiceAccountProvision | ( | S32 | retries = 3 |
) |
Definition at line 1044 of file llvoiceclient.cpp.
References gAgent, LLViewerRegion::getCapability(), LLAgent::getRegion(), mVoiceEnabled, and LLHTTPClient::post().
Referenced by LLViewerVoiceAccountProvisionResponder::error(), and stateMachine().
void LLVoiceClient::userAuthorized | ( | const std::string & | firstName, | |
const std::string & | lastName, | |||
const LLUUID & | agentID | |||
) |
Definition at line 1008 of file llvoiceclient.cpp.
References LLControlGroup::getString(), gGridChoice, gGridName, GRID_INFO_AGNI, GRID_INFO_OTHER, gSavedSettings, LL_ENDL, LL_INFOS, mAccountDisplayName, mAccountFirstName, mAccountLastName, mAccountName, mAccountServerName, mAccountServerURI, nameFromID(), sConnectingToAgni, and LLStringBase< char >::toLower().
Referenced by idle_startup().
void LLVoiceClient::login | ( | const std::string & | accountName, | |
const std::string & | password | |||
) |
Definition at line 1061 of file llvoiceclient.cpp.
References getState(), LL_ENDL, LL_ERRS, LL_WARNS, mAccountName, mAccountPassword, stateLoggedOut, and stateLoggingIn.
Referenced by LLViewerVoiceAccountProvisionResponder::result().
void LLVoiceClient::loginSendMessage | ( | ) |
Definition at line 1890 of file llvoiceclient.cpp.
References mAccountName, mAccountPassword, mCommandCookie, mConnectorHandle, and writeString().
Referenced by stateMachine().
void LLVoiceClient::logout | ( | ) |
Definition at line 1904 of file llvoiceclient.cpp.
References logoutSendMessage(), mAccountPassword, setState(), and stateLoggingOut.
Referenced by stateMachine(), and terminate().
void LLVoiceClient::logoutSendMessage | ( | ) |
Definition at line 1911 of file llvoiceclient.cpp.
References mAccountHandle, mCommandCookie, and writeString().
Referenced by logout().
void LLVoiceClient::channelGetListSendMessage | ( | ) |
Definition at line 1928 of file llvoiceclient.cpp.
References mAccountHandle, mCommandCookie, and writeString().
void LLVoiceClient::sessionCreateSendMessage | ( | ) |
Definition at line 1939 of file llvoiceclient.cpp.
References LLURI::escape(), LL_DEBUGS, LL_ENDL, mAccountHandle, mChannelName, mCommandCookie, mNextSessionHash, mNextSessionNoReconnect, mNextSessionResetOnClose, mNextSessionSpatial, mNextSessionURI, mNonSpatialChannel, mSessionP2P, mSessionResetOnClose, mSessionURI, and writeString().
Referenced by stateMachine().
void LLVoiceClient::sessionConnectSendMessage | ( | ) |
Definition at line 1979 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, mCommandCookie, mNextP2PSessionURI, mNextSessionHandle, mNextSessionResetOnClose, mNextSessionSpatial, mNonSpatialChannel, mSessionHandle, mSessionP2P, mSessionResetOnClose, mSessionURI, and writeString().
Referenced by stateMachine().
void LLVoiceClient::sessionTerminate | ( | ) |
Definition at line 2003 of file llvoiceclient.cpp.
References mSessionTerminateRequested.
Referenced by joinSession(), leaveChannel(), switchChannel(), and tuningStart().
void LLVoiceClient::sessionTerminateSendMessage | ( | ) |
Definition at line 2008 of file llvoiceclient.cpp.
References getState(), LL_DEBUGS, LL_ENDL, LL_WARNS, mSessionHandle, mSessionURI, sessionTerminateByHandle(), setState(), stateJoiningSession, stateJoinSessionFailed, stateJoinSessionFailedWaiting, stateLeavingSession, stateNoChannel, stateRunning, stateSessionJoined, and stateSessionTerminated.
Referenced by stateMachine(), and terminate().
void LLVoiceClient::sessionTerminateByHandle | ( | std::string & | sessionHandle | ) |
Definition at line 2044 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, mCommandCookie, and writeString().
Referenced by declineInvite(), sessionCreateResponse(), and sessionTerminateSendMessage().
void LLVoiceClient::getCaptureDevicesSendMessage | ( | ) |
Definition at line 2058 of file llvoiceclient.cpp.
References mCommandCookie, and writeString().
Referenced by refreshDeviceLists(), and stateMachine().
void LLVoiceClient::getRenderDevicesSendMessage | ( | ) |
Definition at line 2068 of file llvoiceclient.cpp.
References mCommandCookie, and writeString().
Referenced by refreshDeviceLists(), and stateMachine().
void LLVoiceClient::clearCaptureDevices | ( | ) |
Definition at line 2078 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, and mCaptureDevices.
Referenced by refreshDeviceLists(), and LLVivoxProtocolParser::StartTag().
void LLVoiceClient::addCaptureDevice | ( | const std::string & | name | ) |
Definition at line 2085 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, and mCaptureDevices.
Referenced by LLVivoxProtocolParser::EndTag().
void LLVoiceClient::setCaptureDevice | ( | const std::string & | name | ) |
Definition at line 2098 of file llvoiceclient.cpp.
References mCaptureDevice, and mCaptureDeviceDirty.
Referenced by handleVoiceClientPrefsChanged(), and LLVoiceClient().
void LLVoiceClient::clearRenderDevices | ( | ) |
Definition at line 2118 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, and mRenderDevices.
Referenced by refreshDeviceLists(), and LLVivoxProtocolParser::StartTag().
void LLVoiceClient::addRenderDevice | ( | const std::string & | name | ) |
Definition at line 2125 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, and mRenderDevices.
Referenced by LLVivoxProtocolParser::EndTag().
void LLVoiceClient::setRenderDevice | ( | const std::string & | name | ) |
Definition at line 2137 of file llvoiceclient.cpp.
References mRenderDevice, and mRenderDeviceDirty.
Referenced by handleVoiceClientPrefsChanged(), and LLVoiceClient().
void LLVoiceClient::tuningStart | ( | ) |
Definition at line 2158 of file llvoiceclient.cpp.
References getState(), mTuningMode, sessionTerminate(), and stateNoChannel.
Referenced by LLPanelVoiceDeviceSettings::onOpen().
void LLVoiceClient::tuningStop | ( | ) |
Definition at line 2167 of file llvoiceclient.cpp.
References mTuningMode.
Referenced by LLPanelVoiceDeviceSettings::onClose().
bool LLVoiceClient::inTuningMode | ( | ) |
Definition at line 2172 of file llvoiceclient.cpp.
References getState(), and stateMicTuningRunning.
Referenced by LLPanelVoiceDeviceSettings::draw().
bool LLVoiceClient::inTuningStates | ( | ) |
void LLVoiceClient::tuningRenderStartSendMessage | ( | const std::string & | name, | |
bool | loop | |||
) |
Definition at line 2186 of file llvoiceclient.cpp.
References mCommandCookie, mTuningAudioFile, and writeString().
void LLVoiceClient::tuningRenderStopSendMessage | ( | ) |
Definition at line 2199 of file llvoiceclient.cpp.
References mCommandCookie, mTuningAudioFile, and writeString().
void LLVoiceClient::tuningCaptureStartSendMessage | ( | int | duration | ) |
Definition at line 2210 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, mCommandCookie, and writeString().
Referenced by stateMachine().
void LLVoiceClient::tuningCaptureStopSendMessage | ( | ) |
Definition at line 2223 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, mCommandCookie, mTuningEnergy, and writeString().
Referenced by stateMachine().
void LLVoiceClient::tuningSetMicVolume | ( | float | volume | ) |
Definition at line 2237 of file llvoiceclient.cpp.
References mTuningMicVolume, and mTuningMicVolumeDirty.
Referenced by LLPanelVoiceDeviceSettings::refresh().
void LLVoiceClient::tuningSetSpeakerVolume | ( | float | volume | ) |
Definition at line 2247 of file llvoiceclient.cpp.
References mTuningSpeakerVolume, and mTuningSpeakerVolumeDirty.
float LLVoiceClient::tuningGetEnergy | ( | void | ) |
Definition at line 2266 of file llvoiceclient.cpp.
References mTuningEnergy.
Referenced by LLPanelVoiceDeviceSettings::draw().
bool LLVoiceClient::deviceSettingsAvailable | ( | ) |
Definition at line 2271 of file llvoiceclient.cpp.
References mConnected, and mRenderDevices.
Referenced by LLPanelVoiceDeviceSettings::refresh().
void LLVoiceClient::refreshDeviceLists | ( | bool | clearCurrentList = true |
) |
Definition at line 2284 of file llvoiceclient.cpp.
References clearCaptureDevices(), clearRenderDevices(), getCaptureDevicesSendMessage(), and getRenderDevicesSendMessage().
Referenced by LLPanelVoiceDeviceSettings::onOpen().
void LLVoiceClient::daemonDied | ( | ) |
Definition at line 2295 of file llvoiceclient.cpp.
References closeSocket(), LL_ENDL, LL_WARNS, removeAllParticipants(), setState(), and stateDisabled.
Referenced by writeString().
void LLVoiceClient::giveUp | ( | ) |
Definition at line 2307 of file llvoiceclient.cpp.
References closeSocket(), removeAllParticipants(), setState(), and stateJail.
Referenced by LLViewerVoiceAccountProvisionResponder::error().
void LLVoiceClient::connectorCreateResponse | ( | int | statusCode, | |
std::string & | statusString, | |||
std::string & | connectorHandle | |||
) |
Definition at line 2555 of file llvoiceclient.cpp.
References getState(), LL_ENDL, LL_WARNS, mConnectorHandle, setState(), stateConnectorFailed, stateConnectorStarted, and stateConnectorStarting.
Referenced by LLVivoxProtocolParser::processResponse().
void LLVoiceClient::loginResponse | ( | int | statusCode, | |
std::string & | statusString, | |||
std::string & | accountHandle | |||
) |
Definition at line 2573 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, LL_INFOS, LL_WARNS, mAccountHandle, setState(), stateLoginFailed, and stateLoginRetry.
Referenced by LLVivoxProtocolParser::processResponse().
void LLVoiceClient::channelGetListResponse | ( | int | statusCode, | |
std::string & | statusString | |||
) |
Definition at line 2602 of file llvoiceclient.cpp.
References findChannelURI(), LL_ENDL, LL_INFOS, LL_WARNS, mChannelName, and switchChannel().
Referenced by LLVivoxProtocolParser::processResponse().
void LLVoiceClient::sessionCreateResponse | ( | int | statusCode, | |
std::string & | statusString, | |||
std::string & | sessionHandle | |||
) |
Definition at line 2629 of file llvoiceclient.cpp.
References getState(), LL_DEBUGS, LL_ENDL, LL_WARNS, mSessionHandle, mVivoxErrorStatusCode, mVivoxErrorStatusString, sessionTerminateByHandle(), setState(), stateJoiningSession, and stateJoinSessionFailed.
Referenced by LLVivoxProtocolParser::processResponse().
void LLVoiceClient::sessionConnectResponse | ( | int | statusCode, | |
std::string & | statusString | |||
) |
Definition at line 2687 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, LL_WARNS, mVivoxErrorStatusCode, mVivoxErrorStatusString, setState(), and stateJoinSessionFailed.
Referenced by LLVivoxProtocolParser::processResponse().
void LLVoiceClient::sessionTerminateResponse | ( | int | statusCode, | |
std::string & | statusString | |||
) |
Definition at line 2710 of file llvoiceclient.cpp.
References getState(), LL_ENDL, LL_WARNS, setState(), stateLeavingSession, and stateSessionTerminated.
Referenced by LLVivoxProtocolParser::processResponse().
void LLVoiceClient::logoutResponse | ( | int | statusCode, | |
std::string & | statusString | |||
) |
Definition at line 2725 of file llvoiceclient.cpp.
References getState(), LL_ENDL, LL_WARNS, setState(), stateLoggedOut, and stateLoggingOut.
Referenced by LLVivoxProtocolParser::processResponse().
void LLVoiceClient::connectorShutdownResponse | ( | int | statusCode, | |
std::string & | statusString | |||
) |
Definition at line 2739 of file llvoiceclient.cpp.
References getState(), LL_ENDL, LL_WARNS, mConnected, setState(), stateConnectorStopped, and stateConnectorStopping.
Referenced by LLVivoxProtocolParser::processResponse().
void LLVoiceClient::loginStateChangeEvent | ( | std::string & | accountHandle, | |
int | statusCode, | |||
std::string & | statusString, | |||
int | state | |||
) |
Definition at line 2857 of file llvoiceclient.cpp.
References getState(), LL_DEBUGS, LL_ENDL, setState(), stateLoggedIn, and stateLoggingIn.
Referenced by LLVivoxProtocolParser::processResponse().
void LLVoiceClient::sessionNewEvent | ( | std::string & | accountHandle, | |
std::string & | eventSessionHandle, | |||
int | state, | |||
std::string & | nameString, | |||
std::string & | uriString | |||
) |
Definition at line 2890 of file llvoiceclient.cpp.
References LLIMMgr::computeSessionID(), gIMMgr, IDFromName(), IM_SESSION_P2P_INVITE, LLIMMgr::INVITATION_TYPE_VOICE, LLIMMgr::inviteToSession(), LL_DEBUGS, LL_ENDL, LL_WARNS, 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 2755 of file llvoiceclient.cpp.
References getState(), LL_ENDL, LL_INFOS, LL_WARNS, 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::participantStateChangeEvent | ( | std::string & | uriString, | |
int | statusCode, | |||
std::string & | statusString, | |||
int | state, | |||
std::string & | nameString, | |||
std::string & | displayNameString, | |||
int | participantType | |||
) |
Definition at line 2932 of file llvoiceclient.cpp.
References addParticipant(), findParticipant(), LL_DEBUGS, LL_ENDL, LLVoiceClient::participantState::mAvatarID, LLVoiceClient::participantState::mName, NULL, and removeParticipant().
Referenced by LLVivoxProtocolParser::processResponse().
void LLVoiceClient::participantPropertiesEvent | ( | std::string & | uriString, | |
int | statusCode, | |||
std::string & | statusString, | |||
bool | isLocallyMuted, | |||
bool | isModeratorMuted, | |||
bool | isSpeaking, | |||
int | volume, | |||
F32 | energy | |||
) |
Definition at line 2968 of file llvoiceclient.cpp.
References findParticipant(), LL_ENDL, LL_WARNS, LLVoiceClient::participantState::mIsModeratorMuted, LLVoiceClient::participantState::mIsSpeaking, LLVoiceClient::participantState::mPower, LLVoiceClient::participantState::mPTT, LLVoiceClient::participantState::mSpeakingTimeout, LLVoiceClient::participantState::mVolume, and LLFrameTimer::reset().
Referenced by LLVivoxProtocolParser::processResponse().
void LLVoiceClient::auxAudioPropertiesEvent | ( | F32 | energy | ) |
Definition at line 2997 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, and mTuningEnergy.
Referenced by LLVivoxProtocolParser::processResponse().
void LLVoiceClient::muteListChanged | ( | ) |
Definition at line 3003 of file llvoiceclient.cpp.
References mParticipantMap, p, and updateMuteState().
Referenced by LLVoiceClientMuteListObserver::onChange().
void LLVoiceClient::setCameraPosition | ( | const LLVector3d & | position, | |
const LLVector3 & | velocity, | |||
const LLMatrix3 & | rot | |||
) |
Definition at line 3506 of file llvoiceclient.cpp.
References mCameraRequestedPosition, mCameraRot, mCameraVelocity, and mSpatialCoordsDirty.
Referenced by LLAgent::updateCamera().
void LLVoiceClient::setAvatarPosition | ( | const LLVector3d & | position, | |
const LLVector3 & | velocity, | |||
const LLMatrix3 & | rot | |||
) |
Definition at line 3523 of file llvoiceclient.cpp.
References dist_vec(), mAvatarPosition, mAvatarRot, mAvatarVelocity, and mSpatialCoordsDirty.
Referenced by LLVOAvatar::updateCharacter().
bool LLVoiceClient::channelFromRegion | ( | LLViewerRegion * | region, | |
std::string & | name | |||
) |
Definition at line 3544 of file llvoiceclient.cpp.
References LLViewerRegion::getName().
void LLVoiceClient::leaveChannel | ( | void | ) |
Definition at line 3559 of file llvoiceclient.cpp.
References getState(), LL_DEBUGS, LL_ENDL, mChannelName, sessionTerminate(), and stateRunning.
Referenced by LLAppViewer::sendLogoutRequest().
void LLVoiceClient::setMuteMic | ( | bool | muted | ) |
Definition at line 3569 of file llvoiceclient.cpp.
References mMuteMic.
Referenced by audio_update_volume().
void LLVoiceClient::setUserPTTState | ( | bool | ptt | ) |
Definition at line 3574 of file llvoiceclient.cpp.
References mUserPTTState.
Referenced by keyDown(), keyUp(), middleMouseState(), LLVoiceRemoteCtrl::onBtnTalkHeld(), and LLVoiceRemoteCtrl::onBtnTalkReleased().
bool LLVoiceClient::getUserPTTState | ( | ) |
Definition at line 3579 of file llvoiceclient.cpp.
References mUserPTTState.
Referenced by LLVoiceRemoteCtrl::draw().
void LLVoiceClient::toggleUserPTTState | ( | void | ) |
Definition at line 3584 of file llvoiceclient.cpp.
References mUserPTTState.
Referenced by keyDown(), middleMouseState(), and LLVoiceRemoteCtrl::onBtnTalkClicked().
void LLVoiceClient::setVoiceEnabled | ( | bool | enabled | ) |
Definition at line 3589 of file llvoiceclient.cpp.
References LLVoiceChannel::activate(), LLVoiceChannel::getCurrentVoiceChannel(), and mVoiceEnabled.
Referenced by handleVoiceClientPrefsChanged(), and stateMachine().
bool LLVoiceClient::voiceEnabled | ( | ) | [static] |
Definition at line 3606 of file llvoiceclient.cpp.
References LLControlGroup::getBOOL(), and gSavedSettings.
Referenced by LLVoiceRemoteCtrl::draw(), LLFloaterIMPanel::draw(), LLFloaterChatterBox::getCurrentVoiceFloater(), LLSpeakerMgr::isVoiceActive(), LLViewerChatterBoxInvitation::post(), LLOverlayBar::refresh(), LLPanelActiveSpeakers::refreshSpeakers(), and LLVoiceChannel::resume().
void LLVoiceClient::setUsePTT | ( | bool | usePTT | ) |
Definition at line 3629 of file llvoiceclient.cpp.
References mUsePTT, and mUserPTTState.
Referenced by handleVoiceClientPrefsChanged().
void LLVoiceClient::setPTTIsToggle | ( | bool | PTTIsToggle | ) |
Definition at line 3639 of file llvoiceclient.cpp.
References mPTTIsToggle, and mUserPTTState.
Referenced by handleVoiceClientPrefsChanged().
void LLVoiceClient::setPTTKey | ( | std::string & | key | ) |
Definition at line 3651 of file llvoiceclient.cpp.
References KEY_NONE, LLKeyboard::keyFromString(), mPTTIsMiddleMouse, and mPTTKey.
Referenced by handleVoiceClientPrefsChanged(), and LLVoiceClient().
void LLVoiceClient::setEarLocation | ( | S32 | loc | ) |
Definition at line 3668 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, mEarLocation, and mSpatialCoordsDirty.
Referenced by handleVoiceClientPrefsChanged().
void LLVoiceClient::setVoiceVolume | ( | F32 | volume | ) |
Definition at line 3679 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, mSpeakerMuteDirty, mSpeakerVolume, and mSpeakerVolumeDirty.
Referenced by audio_update_volume(), and LLVoiceClient().
void LLVoiceClient::setMicGain | ( | F32 | volume | ) |
Definition at line 3705 of file llvoiceclient.cpp.
References mMicVolume, and mMicVolumeDirty.
Referenced by audio_update_volume().
Definition at line 3910 of file llvoiceclient.cpp.
References findParticipantByID(), llclamp(), LLVoiceClient::participantState::mUserVolume, mVolumeDirty, LLVoiceClient::participantState::mVolumeDirty, S32, and TRUE.
Referenced by LLSpeaker::LLSpeaker(), LLFloaterIMPanel::onVolumeChange(), and LLPanelActiveSpeakers::onVolumeChange().
void LLVoiceClient::setVivoxDebugServerName | ( | std::string & | serverName | ) |
Definition at line 3715 of file llvoiceclient.cpp.
References mAccountServerName, and sConnectingToAgni.
Referenced by handleVoiceClientPrefsChanged().
void LLVoiceClient::setLipSyncEnabled | ( | U32 | enabled | ) |
Definition at line 3611 of file llvoiceclient.cpp.
References mLipSyncEnabled.
Referenced by handleVoiceClientPrefsChanged().
U32 LLVoiceClient::lipSyncEnabled | ( | ) |
Definition at line 3616 of file llvoiceclient.cpp.
References getState(), mLipSyncEnabled, mVoiceEnabled, and stateDisabled.
Referenced by LLVOAvatar::idleUpdate().
Definition at line 3728 of file llvoiceclient.cpp.
References LLKeyboard::getKeyDown(), LLKeyboard::getKeyRepeated(), gKeyboard, KEY_NONE, LL_DEBUGS, LL_ENDL, mPTTIsMiddleMouse, mPTTIsToggle, mPTTKey, setUserPTTState(), LLKeyboard::stringFromKey(), and toggleUserPTTState().
Referenced by LLViewerWindow::handleTranslatedKeyDown().
Definition at line 3753 of file llvoiceclient.cpp.
References LLKeyboard::getKeyDown(), gKeyboard, KEY_NONE, mPTTIsMiddleMouse, mPTTIsToggle, mPTTKey, and setUserPTTState().
Referenced by LLViewerWindow::handleTranslatedKeyUp().
void LLVoiceClient::middleMouseState | ( | bool | down | ) |
Definition at line 3763 of file llvoiceclient.cpp.
References mPTTIsMiddleMouse, mPTTIsToggle, setUserPTTState(), and toggleUserPTTState().
Referenced by LLViewerWindow::handleMiddleMouseDown(), and LLViewerWindow::handleMiddleMouseUp().
Definition at line 3783 of file llvoiceclient.cpp.
References FALSE, findParticipantByID(), and TRUE.
Referenced by LLVOAvatar::idleUpdate(), LLVOAvatar::LLVOAvatar(), LLPanelActiveSpeakers::refreshSpeakers(), and LLSpeakerMgr::update().
Definition at line 3797 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().
Definition at line 3814 of file llvoiceclient.cpp.
References FALSE, findParticipantByID(), and LLVoiceClient::participantState::mIsModeratorMuted.
Referenced by LLSpeakerMgr::update().
Definition at line 3827 of file llvoiceclient.cpp.
References findParticipantByID(), and LLVoiceClient::participantState::mPower.
Referenced by LLVoiceRemoteCtrl::draw(), LLVOAvatar::idleUpdate(), and LLSpeakerMgr::update().
Definition at line 3868 of file llvoiceclient.cpp.
References FALSE, findParticipantByID(), and LLVoiceClient::participantState::mPTT.
Definition at line 3881 of file llvoiceclient.cpp.
References FALSE, findParticipantByID(), and LLVoiceClient::participantState::mOnMuteList.
Referenced by LLSpeakerMgr::update().
Definition at line 3896 of file llvoiceclient.cpp.
References findParticipantByID(), LLVoiceClient::participantState::mUserVolume, S32, and sqrtf.
Referenced by LLFloaterIMPanel::draw(), and LLPanelActiveSpeakers::refreshSpeakers().
Definition at line 3840 of file llvoiceclient.cpp.
References findParticipantByID(), and LLVoiceClient::participantState::mDisplayName.
Definition at line 3853 of file llvoiceclient.cpp.
References FALSE, and findParticipantByID().
LLVoiceClient::serviceType LLVoiceClient::getServiceType | ( | const LLUUID & | id | ) |
Definition at line 3925 of file llvoiceclient.cpp.
References findParticipantByID(), LLVoiceClient::participantState::mServiceType, and serviceTypeUnknown.
std::string LLVoiceClient::getGroupID | ( | const LLUUID & | id | ) |
Definition at line 3938 of file llvoiceclient.cpp.
References findParticipantByID(), and LLVoiceClient::participantState::mGroupID.
BOOL LLVoiceClient::getAreaVoiceDisabled | ( | ) |
LLVoiceClient::participantState * LLVoiceClient::findParticipant | ( | const std::string & | uri | ) |
Definition at line 3107 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 3127 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 3157 of file llvoiceclient.cpp.
References findParticipant(), nameFromID(), and NULL.
Referenced by getCurrentPower(), getDisplayName(), getGroupID(), getIsModeratorMuted(), getIsSpeaking(), getOnMuteList(), getPTTPressed(), getServiceType(), getUserVolume(), getUsingPTT(), getVoiceEnabled(), onAvatarNameLookup(), and setUserVolume().
LLVoiceClient::participantMap * LLVoiceClient::getParticipantList | ( | void | ) |
Definition at line 3101 of file llvoiceclient.cpp.
References mParticipantMap.
Referenced by LLSpeakerMgr::updateSpeakerList().
void LLVoiceClient::addObserver | ( | LLVoiceClientParticipantObserver * | observer | ) |
void LLVoiceClient::removeObserver | ( | LLVoiceClientParticipantObserver * | observer | ) |
void LLVoiceClient::addStatusObserver | ( | LLVoiceClientStatusObserver * | observer | ) |
Definition at line 3979 of file llvoiceclient.cpp.
References mStatusObservers.
Referenced by LLVoiceChannel::LLVoiceChannel().
void LLVoiceClient::removeStatusObserver | ( | LLVoiceClientStatusObserver * | observer | ) |
Definition at line 3984 of file llvoiceclient.cpp.
References mStatusObservers.
Referenced by LLVoiceChannel::~LLVoiceChannel().
void LLVoiceClient::onAvatarNameLookup | ( | const LLUUID & | id, | |
const char * | first, | |||
const char * | last, | |||
BOOL | is_group, | |||
void * | user_data | |||
) | [static] |
Definition at line 4039 of file llvoiceclient.cpp.
References findParticipantByID(), llformat(), LLVoiceClient::participantState::mDisplayName, and notifyObservers().
LLVoiceClient::deviceList * LLVoiceClient::getCaptureDevices | ( | ) |
Definition at line 2093 of file llvoiceclient.cpp.
References mCaptureDevices.
Referenced by LLPanelVoiceDeviceSettings::refresh().
LLVoiceClient::deviceList * LLVoiceClient::getRenderDevices | ( | ) |
Definition at line 2132 of file llvoiceclient.cpp.
References mRenderDevices.
Referenced by LLPanelVoiceDeviceSettings::refresh().
void LLVoiceClient::setNonSpatialChannel | ( | const std::string & | uri, | |
const std::string & | credentials | |||
) |
Definition at line 3302 of file llvoiceclient.cpp.
References switchChannel().
Referenced by LLVoiceChannelGroup::activate(), and LLVoiceChannelGroup::setChannelInfo().
void LLVoiceClient::setSpatialChannel | ( | const std::string & | uri, | |
const std::string & | credentials | |||
) |
Definition at line 3309 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, LL_INFOS, mAreaVoiceDisabled, mNextSessionSpatial, mNonSpatialChannel, mSpatialSessionURI, and switchChannel().
Referenced by LLViewerParcelVoiceInfo::post(), and LLVoiceClientCapResponder::result().
void LLVoiceClient::callUser | ( | LLUUID & | uuid | ) |
Definition at line 3329 of file llvoiceclient.cpp.
References sipURIFromID(), and switchChannel().
Referenced by LLVoiceChannelP2P::activate(), and LLVoiceChannelP2P::setSessionHandle().
void LLVoiceClient::answerInvite | ( | std::string & | sessionHandle, | |
LLUUID & | other_user_id | |||
) |
Definition at line 3336 of file llvoiceclient.cpp.
References joinSession(), and sipURIFromID().
Referenced by LLVoiceChannelP2P::activate().
void LLVoiceClient::declineInvite | ( | std::string & | sessionHandle | ) |
Definition at line 3341 of file llvoiceclient.cpp.
References sessionTerminateByHandle().
Referenced by LLIMMgr::inviteUserResponse().
void LLVoiceClient::leaveNonSpatialChannel | ( | ) |
Definition at line 3346 of file llvoiceclient.cpp.
References mSpatialSessionURI, and switchChannel().
Referenced by LLVoiceChannelProximal::activate(), and LLVoiceChannelGroup::deactivate().
std::string LLVoiceClient::getCurrentChannel | ( | ) |
Definition at line 3351 of file llvoiceclient.cpp.
References getState(), mSessionTerminateRequested, mSessionURI, and stateRunning.
Referenced by LLVoiceChannel::isActive().
bool LLVoiceClient::inProximalChannel | ( | ) |
Definition at line 3361 of file llvoiceclient.cpp.
References getState(), mNonSpatialChannel, mSessionTerminateRequested, and stateRunning.
Referenced by LLVOAvatar::idleUpdate(), LLVoiceChannelProximal::isActive(), LLSpeakerMgr::update(), and LLSpeakerMgr::updateSpeakerList().
std::string LLVoiceClient::sipURIFromID | ( | const LLUUID & | id | ) |
Definition at line 3373 of file llvoiceclient.cpp.
References mAccountServerName, and nameFromID().
Referenced by answerInvite(), and callUser().
void LLVoiceClient::setState | ( | state | inState | ) | [private] |
Definition at line 1168 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, mState, and state2string().
Referenced by connectorCreate(), connectorCreateResponse(), connectorShutdown(), connectorShutdownResponse(), daemonDied(), giveUp(), LLVoiceClient(), loginResponse(), loginStateChangeEvent(), logout(), logoutResponse(), sessionConnectResponse(), sessionCreateResponse(), sessionStateChangeEvent(), sessionTerminateResponse(), sessionTerminateSendMessage(), and stateMachine().
state LLVoiceClient::getState | ( | void | ) | [inline, private] |
Definition at line 359 of file llvoiceclient.h.
References mState.
Referenced by connectorCreateResponse(), connectorShutdownResponse(), getCurrentChannel(), inProximalChannel(), inTuningMode(), joinSession(), leaveChannel(), lipSyncEnabled(), login(), loginStateChangeEvent(), logoutResponse(), parcelChanged(), sessionCreateResponse(), sessionStateChangeEvent(), sessionTerminateResponse(), sessionTerminateSendMessage(), stateMachine(), switchChannel(), and tuningStart().
const char * LLVoiceClient::state2string | ( | LLVoiceClient::state | inState | ) | [static, private] |
Definition at line 1088 of file llvoiceclient.cpp.
References CASE, stateConnecting, stateConnectorFailed, stateConnectorFailedWaiting, stateConnectorStart, stateConnectorStarted, stateConnectorStarting, stateConnectorStopped, stateConnectorStopping, stateDaemonLaunched, stateDisabled, stateIdle, stateJail, stateJoiningSession, stateJoinSessionFailed, stateJoinSessionFailedWaiting, stateLeavingSession, stateLoggedIn, stateLoggedOut, stateLoggingIn, stateLoggingOut, stateLoginFailed, stateLoginFailedWaiting, stateLoginRetry, stateLoginRetryWait, stateMicTuningNoLogin, stateMicTuningRunning, stateMicTuningStart, stateMicTuningStop, stateNeedsLogin, stateNoChannel, stateRunning, stateSessionConnect, stateSessionCreate, stateSessionJoined, stateSessionTerminated, and stateStart.
Referenced by sessionStateChangeEvent(), setState(), and switchChannel().
void LLVoiceClient::stateMachine | ( | ) | [private] |
Definition at line 1175 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, gDisconnected, LLViewerParcelMgr::getAgentParcel(), LLDir::getAppRODataDir(), LLControlGroup::getBOOL(), LLViewerRegion::getCapability(), getCaptureDevicesSendMessage(), LLDir::getDirDelimiter(), LLMuteList::getInstance(), LLSingleton< LLViewerParcelMgr >::getInstance(), LLParcel::getLocalID(), LLViewerRegion::getName(), LLAgent::getRegion(), getRenderDevicesSendMessage(), getState(), LLControlGroup::getString(), LLControlGroup::getU32(), gSavedSettings, LLTimer::hasExpired(), i, isGatewayRunning(), killGateway(), LL_DEBUGS, LL_ENDL, LL_INFOS, LL_WARNS, LLVivoxProtocolParser, 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, mTuningExitState, mTuningMicVolume, mTuningMicVolumeDirty, mTuningMode, mTuningSpeakerVolume, mTuningSpeakerVolumeDirty, mUpdateTimer, mUsePTT, mUserPTTState, mVivoxErrorStatusCode, mVivoxErrorStatusString, mVoiceEnabled, mVolumeDirty, NEVER_CHAIN_EXPIRY_SECS, notifyObservers(), notifyStatusObservers(), NULL, parcelChanged(), removeAllParticipants(), requestVoiceAccountProvision(), 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, stateMicTuningNoLogin, stateMicTuningRunning, stateMicTuningStart, stateMicTuningStop, 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::idle | ( | void * | user_data | ) | [static, private] |
Definition at line 1082 of file llvoiceclient.cpp.
Referenced by LLVoiceClient().
void LLVoiceClient::closeSocket | ( | void | ) | [private] |
Definition at line 1884 of file llvoiceclient.cpp.
References mConnected, and mSocket.
Referenced by daemonDied(), giveUp(), stateMachine(), and terminate().
LLVoiceClient::participantState * LLVoiceClient::addParticipant | ( | const std::string & | uri | ) | [private] |
Definition at line 3026 of file llvoiceclient.cpp.
References IDFromName(), LL_DEBUGS, LL_ENDL, LLVoiceClient::participantState::mAvatarID, LLVoiceClient::participantState::mAvatarIDValid, mParticipantMap, mParticipantMapChanged, LLVoiceClient::participantState::mURI, NULL, and updateMuteState().
Referenced by participantStateChangeEvent().
void LLVoiceClient::removeParticipant | ( | LLVoiceClient::participantState * | participant | ) | [private] |
Definition at line 3077 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, LLVoiceClient::participantState::mAvatarID, mParticipantMap, mParticipantMapChanged, and LLVoiceClient::participantState::mURI.
Referenced by participantStateChangeEvent(), and removeAllParticipants().
void LLVoiceClient::removeAllParticipants | ( | ) | [private] |
Definition at line 3091 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, mParticipantMap, and removeParticipant().
Referenced by daemonDied(), giveUp(), sessionStateChangeEvent(), and stateMachine().
void LLVoiceClient::updateMuteState | ( | participantState * | participant | ) | [private] |
Definition at line 3063 of file llvoiceclient.cpp.
References LLMute::flagVoiceChat, LLMuteList::getInstance(), LLMuteList::isMuted(), LLVoiceClient::participantState::mAvatarID, LLVoiceClient::participantState::mAvatarIDValid, LLVoiceClient::participantState::mOnMuteList, mVolumeDirty, and LLVoiceClient::participantState::mVolumeDirty.
Referenced by addParticipant(), findParticipantByAvatar(), and muteListChanged().
void LLVoiceClient::clearChannelMap | ( | void | ) | [private] |
void LLVoiceClient::addChannelMapEntry | ( | std::string & | name, | |
std::string & | uri | |||
) | [private] |
Definition at line 3174 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, and mChannelMap.
Referenced by LLVivoxProtocolParser::EndTag().
std::string LLVoiceClient::findChannelURI | ( | std::string & | name | ) | [private] |
Definition at line 3180 of file llvoiceclient.cpp.
References mChannelMap.
Referenced by channelGetListResponse().
void LLVoiceClient::parcelChanged | ( | ) | [private] |
Definition at line 3194 of file llvoiceclient.cpp.
References gAgent, LLViewerRegion::getCapability(), LLAgent::getRegion(), getState(), LL_DEBUGS, LL_ENDL, LL_INFOS, mCurrentParcelLocalID, mCurrentRegionName, LLHTTPClient::post(), and stateLoggedIn.
Referenced by sessionStateChangeEvent(), and stateMachine().
void LLVoiceClient::switchChannel | ( | std::string | uri = std::string() , |
|
bool | spatial = true , |
|||
bool | noReconnect = false , |
|||
std::string | hash = "" | |||
) | [private] |
Definition at line 3215 of file llvoiceclient.cpp.
References getState(), LL_DEBUGS, LL_ENDL, mNextP2PSessionURI, mNextSessionHandle, mNextSessionHash, mNextSessionNoReconnect, mNextSessionSpatial, mNextSessionURI, mSessionTerminateRequested, mSessionURI, notifyStatusObservers(), sessionTerminate(), state2string(), stateJoinSessionFailed, stateJoinSessionFailedWaiting, stateNoChannel, and LLVoiceClientStatusObserver::STATUS_VOICE_DISABLED.
Referenced by callUser(), channelGetListResponse(), leaveNonSpatialChannel(), setNonSpatialChannel(), and setSpatialChannel().
void LLVoiceClient::joinSession | ( | std::string | handle, | |
std::string | uri | |||
) | [private] |
Definition at line 3282 of file llvoiceclient.cpp.
References getState(), mNextP2PSessionURI, mNextSessionHandle, mNextSessionHash, mNextSessionNoReconnect, mNextSessionSpatial, mNextSessionURI, sessionTerminate(), and stateNoChannel.
Referenced by answerInvite().
std::string LLVoiceClient::nameFromAvatar | ( | LLVOAvatar * | avatar | ) | [private] |
Definition at line 3398 of file llvoiceclient.cpp.
References LLVOAvatar::getID(), and nameFromID().
Referenced by findParticipantByAvatar().
std::string LLVoiceClient::nameFromID | ( | const LLUUID & | id | ) | [private] |
Definition at line 3408 of file llvoiceclient.cpp.
References LLBase64::encode(), LLStringBase< char >::replaceChar(), LLUUID::toCompressedString(), and UUID_BYTES.
Referenced by findParticipantByID(), nameFromAvatar(), sipURIFromAvatar(), sipURIFromID(), and userAuthorized().
bool LLVoiceClient::IDFromName | ( | const std::string | name, | |
LLUUID & | uuid | |||
) | [private] |
Definition at line 3430 of file llvoiceclient.cpp.
References LLUUID::mData, LLStringBase< char >::replaceChar(), and UUID_BYTES.
Referenced by addParticipant(), and sessionNewEvent().
std::string LLVoiceClient::displayNameFromAvatar | ( | LLVOAvatar * | avatar | ) | [private] |
Definition at line 3462 of file llvoiceclient.cpp.
References LLVOAvatar::getFullname().
std::string LLVoiceClient::sipURIFromAvatar | ( | LLVOAvatar * | avatar | ) | [private] |
Definition at line 3384 of file llvoiceclient.cpp.
References LLVOAvatar::getID(), mAccountServerName, and nameFromID().
std::string LLVoiceClient::sipURIFromName | ( | std::string & | name | ) | [private] |
void LLVoiceClient::sendPositionalUpdate | ( | void | ) | [private] |
Definition at line 2316 of file llvoiceclient.cpp.
References buildSetCaptureDevice(), buildSetRenderDevice(), earLocAvatar, earLocCamera, earLocMixed, LLMatrix3::getFwdRow(), LLMatrix3::getLeftRow(), LLMatrix3::getUpRow(), LL_DEBUGS, LL_ENDL, LL_INFOS, LLVoiceClient::participantState::mAvatarID, mAvatarPosition, mAvatarRot, mAvatarVelocity, mCameraPosition, mCameraRot, mCameraVelocity, mCaptureDeviceDirty, mCommandCookie, mConnectorHandle, mEarLocation, mMicVolume, mMicVolumeDirty, LLVoiceClient::participantState::mOnMuteList, mParticipantMap, mPTT, mPTTDirty, mRenderDeviceDirty, mSessionHandle, mSpatialCoordsDirty, mSpeakerMuteDirty, mSpeakerVolume, mSpeakerVolumeDirty, LLVoiceClient::participantState::mURI, LLVoiceClient::participantState::mUserVolume, LLVector3::mV, LLVoiceClient::participantState::mVolumeDirty, mVolumeDirty, p, VX, VY, VZ, and writeString().
Referenced by stateMachine().
void LLVoiceClient::buildSetCaptureDevice | ( | std::ostringstream & | stream | ) | [private] |
Definition at line 2530 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, mCaptureDevice, and mCommandCookie.
Referenced by sendPositionalUpdate(), and stateMachine().
void LLVoiceClient::buildSetRenderDevice | ( | std::ostringstream & | stream | ) | [private] |
Definition at line 2541 of file llvoiceclient.cpp.
References LL_DEBUGS, LL_ENDL, mCommandCookie, and mRenderDevice.
Referenced by sendPositionalUpdate(), and stateMachine().
void LLVoiceClient::enforceTether | ( | void | ) | [private] |
Definition at line 3483 of file llvoiceclient.cpp.
References dist_vec(), LLVector3d::magVec(), mAvatarPosition, mCameraPosition, mCameraRequestedPosition, and mSpatialCoordsDirty.
Referenced by stateMachine().
void LLVoiceClient::notifyObservers | ( | ) | [private] |
Definition at line 3966 of file llvoiceclient.cpp.
References mObservers, and LLVoiceClientParticipantObserver::onChange().
Referenced by onAvatarNameLookup(), and stateMachine().
void LLVoiceClient::notifyStatusObservers | ( | LLVoiceClientStatusObserver::EStatusType | status | ) | [private] |
Definition at line 3989 of file llvoiceclient.cpp.
References LLVoiceClientStatusObserver::ERROR_CHANNEL_FULL, LLVoiceClientStatusObserver::ERROR_CHANNEL_LOCKED, LLVoiceClientStatusObserver::ERROR_NOT_AVAILABLE, LLVoiceClientStatusObserver::ERROR_UNKNOWN, LL_DEBUGS, LL_ENDL, mNonSpatialChannel, mSessionURI, mStatusObservers, mVivoxErrorStatusCode, LLVoiceClientStatusObserver::onChange(), LLVoiceClientStatusObserver::status2string(), and LLVoiceClientStatusObserver::STATUS_LEFT_CHANNEL.
Referenced by stateMachine(), and switchChannel().
friend class LLVivoxProtocolParser [friend] |
F32 LLVoiceClient::OVERDRIVEN_POWER_LEVEL = 0.7f [static] |
Definition at line 103 of file llvoiceclient.h.
Referenced by LLVoiceRemoteCtrl::draw(), LLPanelVoiceDeviceSettings::draw(), LLPanelActiveSpeakers::refreshSpeakers(), and LLSpeakerMgr::update().
state LLVoiceClient::mState [private] |
bool LLVoiceClient::mSessionTerminateRequested [private] |
Definition at line 355 of file llvoiceclient.h.
Referenced by getCurrentChannel(), inProximalChannel(), LLVoiceClient(), sessionTerminate(), stateMachine(), and switchChannel().
bool LLVoiceClient::mNonSpatialChannel [private] |
Definition at line 356 of file llvoiceclient.h.
Referenced by inProximalChannel(), LLVoiceClient(), notifyStatusObservers(), sessionConnectSendMessage(), sessionCreateSendMessage(), sessionStateChangeEvent(), setSpatialChannel(), and stateMachine().
LLHost LLVoiceClient::mDaemonHost [private] |
LLSocket::ptr_t LLVoiceClient::mSocket [private] |
Definition at line 366 of file llvoiceclient.h.
Referenced by closeSocket(), stateMachine(), and writeString().
bool LLVoiceClient::mConnected [private] |
Definition at line 367 of file llvoiceclient.h.
Referenced by closeSocket(), connectorShutdownResponse(), deviceSettingsAvailable(), findParticipant(), LLVivoxProtocolParser::process_impl(), stateMachine(), and writeString().
LLPumpIO* LLVoiceClient::mPump [private] |
Definition at line 371 of file llvoiceclient.h.
Referenced by init(), LLVoiceClient(), and stateMachine().
std::string LLVoiceClient::mAccountName [private] |
Definition at line 374 of file llvoiceclient.h.
Referenced by login(), loginSendMessage(), stateMachine(), and userAuthorized().
std::string LLVoiceClient::mAccountPassword [private] |
Definition at line 375 of file llvoiceclient.h.
Referenced by login(), loginSendMessage(), logout(), and stateMachine().
std::string LLVoiceClient::mAccountDisplayName [private] |
std::string LLVoiceClient::mAccountFirstName [private] |
std::string LLVoiceClient::mAccountLastName [private] |
std::string LLVoiceClient::mNextP2PSessionURI [private] |
Definition at line 380 of file llvoiceclient.h.
Referenced by joinSession(), sessionConnectSendMessage(), and switchChannel().
std::string LLVoiceClient::mNextSessionURI [private] |
Definition at line 381 of file llvoiceclient.h.
Referenced by joinSession(), sessionCreateSendMessage(), stateMachine(), and switchChannel().
std::string LLVoiceClient::mNextSessionHandle [private] |
Definition at line 382 of file llvoiceclient.h.
Referenced by joinSession(), sessionConnectSendMessage(), sessionStateChangeEvent(), stateMachine(), and switchChannel().
std::string LLVoiceClient::mNextSessionHash [private] |
Definition at line 383 of file llvoiceclient.h.
Referenced by joinSession(), sessionCreateSendMessage(), and switchChannel().
bool LLVoiceClient::mNextSessionSpatial [private] |
Definition at line 384 of file llvoiceclient.h.
Referenced by joinSession(), LLVoiceClient(), sessionConnectSendMessage(), sessionCreateSendMessage(), sessionStateChangeEvent(), setSpatialChannel(), stateMachine(), and switchChannel().
bool LLVoiceClient::mNextSessionNoReconnect [private] |
Definition at line 385 of file llvoiceclient.h.
Referenced by joinSession(), LLVoiceClient(), sessionCreateSendMessage(), and switchChannel().
bool LLVoiceClient::mNextSessionResetOnClose [private] |
Definition at line 386 of file llvoiceclient.h.
Referenced by LLVoiceClient(), sessionConnectSendMessage(), and sessionCreateSendMessage().
std::string LLVoiceClient::mSessionStateEventHandle [private] |
std::string LLVoiceClient::mSessionStateEventURI [private] |
bool LLVoiceClient::mTuningMode [private] |
Definition at line 391 of file llvoiceclient.h.
Referenced by LLVoiceClient(), stateMachine(), tuningStart(), and tuningStop().
float LLVoiceClient::mTuningEnergy [private] |
Definition at line 392 of file llvoiceclient.h.
Referenced by auxAudioPropertiesEvent(), LLVoiceClient(), tuningCaptureStopSendMessage(), and tuningGetEnergy().
std::string LLVoiceClient::mTuningAudioFile [private] |
Definition at line 393 of file llvoiceclient.h.
Referenced by tuningRenderStartSendMessage(), and tuningRenderStopSendMessage().
int LLVoiceClient::mTuningMicVolume [private] |
Definition at line 394 of file llvoiceclient.h.
Referenced by LLVoiceClient(), stateMachine(), and tuningSetMicVolume().
bool LLVoiceClient::mTuningMicVolumeDirty [private] |
Definition at line 395 of file llvoiceclient.h.
Referenced by LLVoiceClient(), stateMachine(), and tuningSetMicVolume().
int LLVoiceClient::mTuningSpeakerVolume [private] |
Definition at line 396 of file llvoiceclient.h.
Referenced by LLVoiceClient(), stateMachine(), and tuningSetSpeakerVolume().
bool LLVoiceClient::mTuningSpeakerVolumeDirty [private] |
Definition at line 397 of file llvoiceclient.h.
Referenced by LLVoiceClient(), stateMachine(), and tuningSetSpeakerVolume().
state LLVoiceClient::mTuningExitState [private] |
std::string LLVoiceClient::mSpatialSessionURI [private] |
Definition at line 400 of file llvoiceclient.h.
Referenced by leaveNonSpatialChannel(), and setSpatialChannel().
bool LLVoiceClient::mSessionResetOnClose [private] |
Definition at line 402 of file llvoiceclient.h.
Referenced by LLVoiceClient(), sessionConnectSendMessage(), sessionCreateSendMessage(), and sessionStateChangeEvent().
int LLVoiceClient::mVivoxErrorStatusCode [private] |
Definition at line 404 of file llvoiceclient.h.
Referenced by LLVoiceClient(), notifyStatusObservers(), sessionConnectResponse(), sessionCreateResponse(), sessionStateChangeEvent(), and stateMachine().
std::string LLVoiceClient::mVivoxErrorStatusString [private] |
Definition at line 405 of file llvoiceclient.h.
Referenced by sessionConnectResponse(), sessionCreateResponse(), sessionStateChangeEvent(), and stateMachine().
std::string LLVoiceClient::mChannelName [private] |
Definition at line 407 of file llvoiceclient.h.
Referenced by channelGetListResponse(), leaveChannel(), and sessionCreateSendMessage().
bool LLVoiceClient::mAreaVoiceDisabled [private] |
Definition at line 408 of file llvoiceclient.h.
Referenced by getAreaVoiceDisabled(), LLVoiceClient(), and setSpatialChannel().
std::string LLVoiceClient::mSessionURI [private] |
Definition at line 409 of file llvoiceclient.h.
Referenced by getCurrentChannel(), notifyStatusObservers(), sessionConnectSendMessage(), sessionCreateSendMessage(), sessionTerminateSendMessage(), and switchChannel().
bool LLVoiceClient::mSessionP2P [private] |
Definition at line 410 of file llvoiceclient.h.
Referenced by LLVoiceClient(), sessionConnectSendMessage(), sessionCreateSendMessage(), and stateMachine().
S32 LLVoiceClient::mCurrentParcelLocalID [private] |
Definition at line 412 of file llvoiceclient.h.
Referenced by LLVoiceClient(), parcelChanged(), and stateMachine().
std::string LLVoiceClient::mCurrentRegionName [private] |
std::string LLVoiceClient::mConnectorHandle [private] |
Definition at line 415 of file llvoiceclient.h.
Referenced by connectorCreateResponse(), connectorShutdown(), loginSendMessage(), and sendPositionalUpdate().
std::string LLVoiceClient::mAccountHandle [private] |
Definition at line 416 of file llvoiceclient.h.
Referenced by channelGetListSendMessage(), loginResponse(), logoutSendMessage(), and sessionCreateSendMessage().
std::string LLVoiceClient::mSessionHandle [private] |
Definition at line 417 of file llvoiceclient.h.
Referenced by sendPositionalUpdate(), sessionConnectSendMessage(), sessionCreateResponse(), sessionStateChangeEvent(), sessionTerminateSendMessage(), and stateMachine().
U32 LLVoiceClient::mCommandCookie [private] |
Definition at line 418 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().
std::string LLVoiceClient::mAccountServerName [private] |
Definition at line 420 of file llvoiceclient.h.
Referenced by setVivoxDebugServerName(), sipURIFromAvatar(), sipURIFromID(), sipURIFromName(), and userAuthorized().
std::string LLVoiceClient::mAccountServerURI [private] |
Definition at line 421 of file llvoiceclient.h.
Referenced by connectorCreate(), stateMachine(), and userAuthorized().
int LLVoiceClient::mLoginRetryCount [private] |
participantMap LLVoiceClient::mParticipantMap [private] |
Definition at line 425 of file llvoiceclient.h.
Referenced by addParticipant(), findParticipant(), getParticipantList(), muteListChanged(), removeAllParticipants(), removeParticipant(), and sendPositionalUpdate().
bool LLVoiceClient::mParticipantMapChanged [private] |
Definition at line 426 of file llvoiceclient.h.
Referenced by addParticipant(), findParticipantByAvatar(), LLVoiceClient(), removeParticipant(), and stateMachine().
deviceList LLVoiceClient::mCaptureDevices [private] |
Definition at line 428 of file llvoiceclient.h.
Referenced by addCaptureDevice(), clearCaptureDevices(), and getCaptureDevices().
deviceList LLVoiceClient::mRenderDevices [private] |
Definition at line 429 of file llvoiceclient.h.
Referenced by addRenderDevice(), clearRenderDevices(), deviceSettingsAvailable(), and getRenderDevices().
std::string LLVoiceClient::mCaptureDevice [private] |
Definition at line 431 of file llvoiceclient.h.
Referenced by buildSetCaptureDevice(), setCaptureDevice(), and stateMachine().
std::string LLVoiceClient::mRenderDevice [private] |
Definition at line 432 of file llvoiceclient.h.
Referenced by buildSetRenderDevice(), setRenderDevice(), and stateMachine().
bool LLVoiceClient::mCaptureDeviceDirty [private] |
Definition at line 433 of file llvoiceclient.h.
Referenced by LLVoiceClient(), sendPositionalUpdate(), setCaptureDevice(), and stateMachine().
bool LLVoiceClient::mRenderDeviceDirty [private] |
Definition at line 434 of file llvoiceclient.h.
Referenced by LLVoiceClient(), sendPositionalUpdate(), setRenderDevice(), and stateMachine().
channelMap LLVoiceClient::mChannelMap [private] |
Definition at line 445 of file llvoiceclient.h.
Referenced by addChannelMapEntry(), clearChannelMap(), and findChannelURI().
bool LLVoiceClient::mSpatialCoordsDirty [private] |
Definition at line 473 of file llvoiceclient.h.
Referenced by enforceTether(), LLVoiceClient(), sendPositionalUpdate(), setAvatarPosition(), setCameraPosition(), setEarLocation(), and stateMachine().
LLVector3d LLVoiceClient::mCameraPosition [private] |
Definition at line 475 of file llvoiceclient.h.
Referenced by enforceTether(), and sendPositionalUpdate().
Definition at line 476 of file llvoiceclient.h.
Referenced by enforceTether(), and setCameraPosition().
LLVector3 LLVoiceClient::mCameraVelocity [private] |
Definition at line 477 of file llvoiceclient.h.
Referenced by sendPositionalUpdate(), and setCameraPosition().
LLMatrix3 LLVoiceClient::mCameraRot [private] |
Definition at line 478 of file llvoiceclient.h.
Referenced by sendPositionalUpdate(), and setCameraPosition().
LLVector3d LLVoiceClient::mAvatarPosition [private] |
Definition at line 480 of file llvoiceclient.h.
Referenced by enforceTether(), sendPositionalUpdate(), and setAvatarPosition().
LLVector3 LLVoiceClient::mAvatarVelocity [private] |
Definition at line 481 of file llvoiceclient.h.
Referenced by sendPositionalUpdate(), and setAvatarPosition().
LLMatrix3 LLVoiceClient::mAvatarRot [private] |
Definition at line 482 of file llvoiceclient.h.
Referenced by sendPositionalUpdate(), and setAvatarPosition().
bool LLVoiceClient::mPTTDirty [private] |
Definition at line 484 of file llvoiceclient.h.
Referenced by LLVoiceClient(), sendPositionalUpdate(), and stateMachine().
bool LLVoiceClient::mPTT [private] |
Definition at line 485 of file llvoiceclient.h.
Referenced by LLVoiceClient(), sendPositionalUpdate(), and stateMachine().
bool LLVoiceClient::mUsePTT [private] |
Definition at line 487 of file llvoiceclient.h.
Referenced by LLVoiceClient(), setUsePTT(), and stateMachine().
bool LLVoiceClient::mPTTIsMiddleMouse [private] |
Definition at line 488 of file llvoiceclient.h.
Referenced by keyDown(), keyUp(), middleMouseState(), and setPTTKey().
KEY LLVoiceClient::mPTTKey [private] |
bool LLVoiceClient::mPTTIsToggle [private] |
Definition at line 490 of file llvoiceclient.h.
Referenced by keyDown(), keyUp(), LLVoiceClient(), middleMouseState(), and setPTTIsToggle().
bool LLVoiceClient::mUserPTTState [private] |
Definition at line 491 of file llvoiceclient.h.
Referenced by getUserPTTState(), LLVoiceClient(), setPTTIsToggle(), setUsePTT(), setUserPTTState(), stateMachine(), and toggleUserPTTState().
bool LLVoiceClient::mMuteMic [private] |
Definition at line 492 of file llvoiceclient.h.
Referenced by LLVoiceClient(), setMuteMic(), and stateMachine().
bool LLVoiceClient::mVolumeDirty [private] |
Definition at line 496 of file llvoiceclient.h.
Referenced by LLVoiceClient(), sendPositionalUpdate(), setUserVolume(), stateMachine(), and updateMuteState().
S32 LLVoiceClient::mEarLocation [private] |
Definition at line 505 of file llvoiceclient.h.
Referenced by LLVoiceClient(), sendPositionalUpdate(), and setEarLocation().
bool LLVoiceClient::mSpeakerVolumeDirty [private] |
Definition at line 507 of file llvoiceclient.h.
Referenced by LLVoiceClient(), sendPositionalUpdate(), setVoiceVolume(), and stateMachine().
bool LLVoiceClient::mSpeakerMuteDirty [private] |
Definition at line 508 of file llvoiceclient.h.
Referenced by sendPositionalUpdate(), and setVoiceVolume().
int LLVoiceClient::mSpeakerVolume [private] |
Definition at line 509 of file llvoiceclient.h.
Referenced by LLVoiceClient(), sendPositionalUpdate(), and setVoiceVolume().
int LLVoiceClient::mMicVolume [private] |
Definition at line 511 of file llvoiceclient.h.
Referenced by LLVoiceClient(), sendPositionalUpdate(), and setMicGain().
bool LLVoiceClient::mMicVolumeDirty [private] |
Definition at line 512 of file llvoiceclient.h.
Referenced by LLVoiceClient(), sendPositionalUpdate(), and setMicGain().
bool LLVoiceClient::mVoiceEnabled [private] |
Definition at line 514 of file llvoiceclient.h.
Referenced by lipSyncEnabled(), LLVoiceClient(), requestVoiceAccountProvision(), setVoiceEnabled(), and stateMachine().
bool LLVoiceClient::mWriteInProgress [private] |
std::string LLVoiceClient::mWriteString [private] |
Definition at line 516 of file llvoiceclient.h.
size_t LLVoiceClient::mWriteOffset [private] |
Definition at line 517 of file llvoiceclient.h.
LLTimer LLVoiceClient::mUpdateTimer [private] |
U32 LLVoiceClient::mLipSyncEnabled [private] |
Definition at line 521 of file llvoiceclient.h.
Referenced by lipSyncEnabled(), LLVoiceClient(), and setLipSyncEnabled().
observer_set_t LLVoiceClient::mObservers [private] |
Definition at line 524 of file llvoiceclient.h.
Referenced by addObserver(), notifyObservers(), and removeObserver().
Definition at line 529 of file llvoiceclient.h.
Referenced by addStatusObserver(), notifyStatusObservers(), and removeStatusObserver().