#include <llfloateractivespeakers.h>
Public Types | |
typedef std::vector< LLPointer < LLSpeaker > > | speaker_list_t |
Public Member Functions | |
LLSpeakerMgr (LLVoiceChannel *channelp) | |
virtual | ~LLSpeakerMgr () |
const LLPointer< LLSpeaker > | findSpeaker (const LLUUID &avatar_id) |
void | update () |
void | setSpeakerTyping (const LLUUID &speaker_id, BOOL typing) |
void | speakerChatted (const LLUUID &speaker_id) |
LLPointer< LLSpeaker > | setSpeaker (const LLUUID &id, const LLString &name=LLString::null, LLSpeaker::ESpeakerStatus status=LLSpeaker::STATUS_TEXT_ONLY, LLSpeaker::ESpeakerType=LLSpeaker::SPEAKER_AGENT) |
BOOL | isVoiceActive () |
void | getSpeakerList (speaker_list_t *speaker_list, BOOL include_text) |
const LLUUID | getSessionID () |
Protected Types | |
typedef std::map< LLUUID, LLPointer< LLSpeaker > > | speaker_map_t |
Protected Member Functions | |
virtual void | updateSpeakerList () |
Protected Attributes | |
speaker_map_t | mSpeakers |
speaker_list_t | mSpeakersSorted |
LLFrameTimer | mSpeechTimer |
LLVoiceChannel * | mVoiceChannel |
Definition at line 116 of file llfloateractivespeakers.h.
typedef std::vector<LLPointer<LLSpeaker> > LLSpeakerMgr::speaker_list_t |
Definition at line 133 of file llfloateractivespeakers.h.
typedef std::map<LLUUID, LLPointer<LLSpeaker> > LLSpeakerMgr::speaker_map_t [protected] |
Definition at line 140 of file llfloateractivespeakers.h.
LLSpeakerMgr::LLSpeakerMgr | ( | LLVoiceChannel * | channelp | ) |
Definition at line 903 of file llfloateractivespeakers.cpp.
LLSpeakerMgr::~LLSpeakerMgr | ( | ) | [virtual] |
Definition at line 908 of file llfloateractivespeakers.cpp.
Definition at line 1080 of file llfloateractivespeakers.cpp.
References mSpeakers, and NULL.
Referenced by LLPanelActiveSpeakers::addSpeaker(), LLFloaterIMPanel::draw(), LLPanelActiveSpeakers::handleSpeakerSelect(), LLPanelActiveSpeakers::onClickMuteTextCommit(), LLPanelActiveSpeakers::onClickMuteVoiceCommit(), LLPanelActiveSpeakers::onDoubleClickSpeaker(), LLPanelActiveSpeakers::refreshSpeakers(), setSpeaker(), setSpeakerTyping(), speakerChatted(), and LLIMSpeakerMgr::updateSpeakers().
void LLSpeakerMgr::update | ( | ) |
Definition at line 947 of file llfloateractivespeakers.cpp.
References ACTIVE_COLOR, clamp_rescale(), LLObservable::fireEvent(), LLControlGroup::getColor4(), LLVoiceClient::getCurrentPower(), LLFrameTimer::getElapsedTimeF32(), LLVoiceClient::getIsModeratorMuted(), LLVoiceClient::getIsSpeaking(), LLVoiceClient::getOnMuteList(), LLVoiceClient::getVoiceEnabled(), gSavedSettings, gVoiceClient, LLVoiceClient::inProximalChannel(), LLVoiceChannel::isActive(), lerp(), LLSpeaker::mDotColor, LLSpeaker::mHasSpoken, LLSpeaker::mLastSpokeTime, LLSpeaker::mModeratorMutedVoice, mSpeakers, mSpeakersSorted, mSpeechTimer, LLSpeaker::mSpeechVolume, LLSpeaker::mStatus, mVoiceChannel, LLVoiceClient::OVERDRIVEN_POWER_LEVEL, S32, LLSpeaker::STATUS_HAS_SPOKEN, LLSpeaker::STATUS_MUTED, LLSpeaker::STATUS_NOT_IN_CHANNEL, LLSpeaker::STATUS_SPEAKING, LLSpeaker::STATUS_TEXT_ONLY, LLSpeaker::STATUS_VOICE_ACTIVE, TRUE, and updateSpeakerList().
Referenced by LLPanelActiveSpeakers::refreshSpeakers().
Definition at line 1110 of file llfloateractivespeakers.cpp.
References findSpeaker(), and LLPointer< Type >::notNull().
Referenced by LLFloaterIMPanel::addHistoryLine(), process_chat_from_simulator(), LLFloaterIMPanel::removeTypingIndicator(), and LLFloaterIMPanel::setTyping().
void LLSpeakerMgr::speakerChatted | ( | const LLUUID & | speaker_id | ) |
Definition at line 1120 of file llfloateractivespeakers.cpp.
References findSpeaker(), LLFrameTimer::getElapsedTimeF32(), mSpeechTimer, LLPointer< Type >::notNull(), and TRUE.
Referenced by LLFloaterIMPanel::addHistoryLine(), and LLAgent::heardChat().
LLPointer< LLSpeaker > LLSpeakerMgr::setSpeaker | ( | const LLUUID & | id, | |
const LLString & | name = LLString::null , |
|||
LLSpeaker::ESpeakerStatus | status = LLSpeaker::STATUS_TEXT_ONLY , |
|||
LLSpeaker::ESpeakerType | type = LLSpeaker::SPEAKER_AGENT | |||
) |
Definition at line 912 of file llfloateractivespeakers.cpp.
References findSpeaker(), LLObservable::fireEvent(), llmin(), mSpeakers, mSpeakersSorted, LLPointer< Type >::notNull(), NULL, LLSpeaker::SPEAKER_AGENT, and SPEAKER_TIMEOUT.
Referenced by LLPanelActiveSpeakers::setSpeaker(), LLIMSpeakerMgr::setSpeakers(), LLLocalSpeakerMgr::updateSpeakerList(), updateSpeakerList(), and LLIMSpeakerMgr::updateSpeakers().
BOOL LLSpeakerMgr::isVoiceActive | ( | ) |
Definition at line 1130 of file llfloateractivespeakers.cpp.
References LLVoiceChannel::isActive(), mVoiceChannel, and LLVoiceClient::voiceEnabled().
Referenced by LLPanelActiveSpeakers::refreshSpeakers().
void LLSpeakerMgr::getSpeakerList | ( | speaker_list_t * | speaker_list, | |
BOOL | include_text | |||
) |
Definition at line 1090 of file llfloateractivespeakers.cpp.
References mSpeakers, and LLSpeaker::STATUS_TEXT_ONLY.
Referenced by LLPanelActiveSpeakers::refreshSpeakers().
const LLUUID LLSpeakerMgr::getSessionID | ( | ) |
Definition at line 1104 of file llfloateractivespeakers.cpp.
References LLVoiceChannel::getSessionID(), and mVoiceChannel.
void LLSpeakerMgr::updateSpeakerList | ( | ) | [protected, virtual] |
Reimplemented in LLIMSpeakerMgr, LLActiveSpeakerMgr, and LLLocalSpeakerMgr.
Definition at line 1063 of file llfloateractivespeakers.cpp.
References LLVoiceClient::getParticipantList(), gVoiceClient, LLVoiceClient::inProximalChannel(), LLVoiceChannel::isActive(), LLVoiceClient::participantState::mAvatarID, mVoiceChannel, setSpeaker(), and LLSpeaker::STATUS_VOICE_ACTIVE.
Referenced by update(), LLLocalSpeakerMgr::updateSpeakerList(), and LLActiveSpeakerMgr::updateSpeakerList().
speaker_map_t LLSpeakerMgr::mSpeakers [protected] |
Definition at line 141 of file llfloateractivespeakers.h.
Referenced by findSpeaker(), getSpeakerList(), setSpeaker(), update(), LLLocalSpeakerMgr::updateSpeakerList(), and LLActiveSpeakerMgr::updateSpeakerList().
speaker_list_t LLSpeakerMgr::mSpeakersSorted [protected] |
Definition at line 143 of file llfloateractivespeakers.h.
Referenced by setSpeaker(), update(), and LLActiveSpeakerMgr::updateSpeakerList().
LLFrameTimer LLSpeakerMgr::mSpeechTimer [protected] |
Definition at line 144 of file llfloateractivespeakers.h.
Referenced by speakerChatted(), and update().
LLVoiceChannel* LLSpeakerMgr::mVoiceChannel [protected] |
Definition at line 145 of file llfloateractivespeakers.h.
Referenced by getSessionID(), isVoiceActive(), update(), LLActiveSpeakerMgr::updateSpeakerList(), and updateSpeakerList().