[Voice Update] llfloateractivespeakers.* to llspeakers.*

Condenses the three moderation responders to one.
Adds Speakers settings.
Uses dedicated timer class to track speakers on the list
Adds temporary getSpeakerManager() function to LLFloaterIMPanel to play the role of LLIMModel::getSpeakerManager
This commit is contained in:
Lirusaito
2013-06-04 10:18:49 -04:00
parent c273e34ed8
commit 89963b018b
15 changed files with 1369 additions and 932 deletions

View File

@@ -40,15 +40,17 @@
// Viewer includes
#include "llmutelist.h" // to check for muted avatars
#include "llagent.h"
#include "llimpanel.h" // for LLFloaterIMPanel
#include "llimview.h" // for LLIMMgr
#include "llparcel.h"
#include "llviewerparcelmgr.h"
//#include "llfirstuse.h"
#include "llvoicechannel.h" // Singu TODO: break out llspeakers.h
#include "llspeakers.h"
#include "lltrans.h"
#include "llviewercamera.h"
#include "llviewernetwork.h"
#include "llvoicechannel.h"
#include "llnotificationsutil.h"
#include "stringize.h"
@@ -3850,9 +3852,12 @@ void LLVivoxVoiceClient::participantUpdatedEvent(
// ignore session ID of local chat
if (voice_cnl && voice_cnl->getSessionID().notNull())
{
/* Singu TODO: Voice Update: LLIMModel
/* Singu TODO: LLIMModel::getSpeakerManager
LLSpeakerMgr* speaker_manager = LLIMModel::getInstance()->getSpeakerManager(voice_cnl->getSessionID());
if (speaker_manager)
*/
if (LLFloaterIMPanel* floaterp = gIMMgr->findFloaterBySession(voice_cnl->getSessionID()))
if (LLSpeakerMgr* speaker_manager = floaterp->getSpeakerManager())
{
speaker_manager->update(true);
@@ -3863,7 +3868,6 @@ void LLVivoxVoiceClient::participantUpdatedEvent(
speaker_manager->initVoiceModerateMode();
}
}
*/
}
}
else