[Voice Update] LLVoiceClient
Migrate a bunch of classes out of llvoiceclient.* and into new llvoicevivox.* Update most of these to match their counterparts Introduce VoiceFonts support (voice morphing, floater still to come) Support for a bunch of v3 voice settings. Move volume settings management from LLMutelist into LLSpeakerVolumeStorage Support for Avaline mutes (WIP) Adds voice section to LLAgent Moved llfloatervoicedevicesettings to llpanelvoicedevicesettings, v3's voice device panel design is more intuitive.
This commit is contained in:
@@ -260,6 +260,56 @@ void LLAgent::parcelChangedCallback()
|
||||
gAgent.mCanEditParcel = can_edit;
|
||||
}
|
||||
|
||||
// static
|
||||
bool LLAgent::isActionAllowed(const LLSD& sdname)
|
||||
{
|
||||
bool retval = false;
|
||||
|
||||
const std::string& param = sdname.asString();
|
||||
|
||||
if (param == "speak")
|
||||
{
|
||||
if ( gAgent.isVoiceConnected() &&
|
||||
LLViewerParcelMgr::getInstance()->allowAgentVoice() &&
|
||||
! LLVoiceClient::getInstance()->inTuningMode() )
|
||||
{
|
||||
retval = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
retval = false;
|
||||
}
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
// static
|
||||
void LLAgent::pressMicrophone(const LLSD& name)
|
||||
{
|
||||
//LLFirstUse::speak(false);
|
||||
|
||||
LLVoiceClient::getInstance()->inputUserControlState(true);
|
||||
}
|
||||
|
||||
// static
|
||||
void LLAgent::releaseMicrophone(const LLSD& name)
|
||||
{
|
||||
LLVoiceClient::getInstance()->inputUserControlState(false);
|
||||
}
|
||||
|
||||
// static
|
||||
void LLAgent::toggleMicrophone(const LLSD& name)
|
||||
{
|
||||
LLVoiceClient::getInstance()->toggleUserPTTState();
|
||||
}
|
||||
|
||||
// static
|
||||
bool LLAgent::isMicrophoneOn(const LLSD& sdname)
|
||||
{
|
||||
return LLVoiceClient::getInstance()->getUserPTTState();
|
||||
}
|
||||
|
||||
// ************************************************************
|
||||
// Enabled this definition to compile a 'hacked' viewer that
|
||||
// locally believes the end user has godlike powers.
|
||||
|
||||
Reference in New Issue
Block a user