#include <llfloateractivespeakers.h>
Inheritance diagram for LLSpeakerMgr:


| 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) | 
| 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 94 of file llfloateractivespeakers.h.
| typedef std::vector<LLPointer<LLSpeaker> > LLSpeakerMgr::speaker_list_t | 
Definition at line 111 of file llfloateractivespeakers.h.
| typedef std::map<LLUUID, LLPointer<LLSpeaker> > LLSpeakerMgr::speaker_map_t  [protected] | 
Definition at line 117 of file llfloateractivespeakers.h.
| LLSpeakerMgr::LLSpeakerMgr | ( | LLVoiceChannel * | channelp | ) | 
Definition at line 473 of file llfloateractivespeakers.cpp.
| LLSpeakerMgr::~LLSpeakerMgr | ( | ) |  [virtual] | 
Definition at line 478 of file llfloateractivespeakers.cpp.
Definition at line 642 of file llfloateractivespeakers.cpp.
References mSpeakers, and NULL.
Referenced by LLPanelActiveSpeakers::onClickMuteTextCommit(), LLPanelActiveSpeakers::onClickMuteVoiceCommit(), LLIMSpeakerMgr::processSpeakerListUpdate(), LLPanelActiveSpeakers::refreshSpeakers(), setSpeaker(), setSpeakerTyping(), and speakerChatted().
| void LLSpeakerMgr::getSpeakerList | ( | speaker_list_t * | speaker_list, | |
| BOOL | include_text | |||
| ) | 
Definition at line 652 of file llfloateractivespeakers.cpp.
References mSpeakers, and LLSpeaker::STATUS_TEXT_ONLY.
Referenced by LLPanelActiveSpeakers::refreshSpeakers().
| BOOL LLSpeakerMgr::isVoiceActive | ( | ) | 
Definition at line 686 of file llfloateractivespeakers.cpp.
References LLVoiceChannel::isActive(), mVoiceChannel, and LLVoiceClient::voiceEnabled().
| LLPointer< LLSpeaker > LLSpeakerMgr::setSpeaker | ( | const LLUUID & | id, | |
| const LLString & | name = LLString::null, | |||
| LLSpeaker::ESpeakerStatus | status = LLSpeaker::STATUS_TEXT_ONLY, | |||
| LLSpeaker::ESpeakerType | = LLSpeaker::SPEAKER_AGENT | |||
| ) | 
Definition at line 482 of file llfloateractivespeakers.cpp.
References findSpeaker(), llmin(), mSpeakers, mSpeakersSorted, LLPointer< Type >::notNull(), NULL, LLSpeaker::SPEAKER_AGENT, and SPEAKER_TIMEOUT.
Referenced by LLIMSpeakerMgr::processSpeakerList(), LLIMSpeakerMgr::processSpeakerListUpdate(), LLIMSpeakerMgr::processSpeakerMap(), LLPanelActiveSpeakers::setSpeaker(), LLLocalSpeakerMgr::updateSpeakerList(), and updateSpeakerList().
Definition at line 666 of file llfloateractivespeakers.cpp.
References findSpeaker(), and LLPointer< Type >::notNull().
Referenced by LLFloaterIMPanel::addHistoryLine(), process_chat_from_simulator(), LLFloaterIMPanel::removeTypingIndicator(), and LLFloaterIMPanel::setTyping().
Definition at line 676 of file llfloateractivespeakers.cpp.
References findSpeaker(), LLFrameTimer::getElapsedTimeF32(), mSpeechTimer, LLPointer< Type >::notNull(), and TRUE.
Referenced by LLFloaterIMPanel::addHistoryLine(), and LLAgent::heardChat().
| void LLSpeakerMgr::update | ( | ) | 
Definition at line 516 of file llfloateractivespeakers.cpp.
References ACTIVE_COLOR, clamp_rescale(), f, LLControlGroup::getColor4(), LLVoiceClient::getCurrentPower(), LLFrameTimer::getElapsedTimeF32(), LLVoiceClient::getIsSpeaking(), LLVoiceClient::getOnMuteList(), LLVoiceClient::getVoiceEnabled(), gSavedSettings, gVoiceClient, LLVoiceClient::inProximalChannel(), LLVoiceChannel::isActive(), lerp(), mSpeakers, mSpeakersSorted, mSpeechTimer, 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, updateSpeakerList(), and LLColor4::white.
Referenced by LLIMSpeakerMgr::processSpeakerListUpdate(), and LLPanelActiveSpeakers::refreshSpeakers().
| void LLSpeakerMgr::updateSpeakerList | ( | ) |  [protected, virtual] | 
Reimplemented in LLIMSpeakerMgr, LLActiveSpeakerMgr, and LLLocalSpeakerMgr.
Definition at line 625 of file llfloateractivespeakers.cpp.
References LLVoiceClient::getParticipantList(), gVoiceClient, LLVoiceClient::inProximalChannel(), LLVoiceChannel::isActive(), mVoiceChannel, setSpeaker(), and LLSpeaker::STATUS_VOICE_ACTIVE.
Referenced by update(), LLLocalSpeakerMgr::updateSpeakerList(), and LLActiveSpeakerMgr::updateSpeakerList().
| speaker_map_t LLSpeakerMgr::mSpeakers  [protected] | 
Definition at line 118 of file llfloateractivespeakers.h.
Referenced by findSpeaker(), getSpeakerList(), setSpeaker(), update(), LLLocalSpeakerMgr::updateSpeakerList(), and LLActiveSpeakerMgr::updateSpeakerList().
| speaker_list_t LLSpeakerMgr::mSpeakersSorted  [protected] | 
Definition at line 120 of file llfloateractivespeakers.h.
Referenced by setSpeaker(), update(), and LLActiveSpeakerMgr::updateSpeakerList().
| LLFrameTimer LLSpeakerMgr::mSpeechTimer  [protected] | 
Definition at line 121 of file llfloateractivespeakers.h.
Referenced by speakerChatted(), and update().
| LLVoiceChannel* LLSpeakerMgr::mVoiceChannel  [protected] | 
Definition at line 122 of file llfloateractivespeakers.h.
Referenced by isVoiceActive(), update(), LLActiveSpeakerMgr::updateSpeakerList(), and updateSpeakerList().
 1.4.7
 1.4.7