Improve error message notifying user that Voice Morph Effects are not supported
secondlife/viewer#1451master
parent
162bb33e15
commit
26a01ced9a
|
|
@ -37,6 +37,7 @@
|
|||
#include "llui.h"
|
||||
#include "llkeyboard.h"
|
||||
#include "llagent.h"
|
||||
#include "lltrans.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
const F32 LLVoiceClient::OVERDRIVEN_POWER_LEVEL = 0.7f;
|
||||
|
|
@ -597,7 +598,11 @@ bool LLVoiceClient::voiceEnabled()
|
|||
bool enabled = enable_voice_chat && !cmd_line_disable_voice && !gNonInteractive;
|
||||
if (enabled && !mVoiceEffectSupportNotified && getVoiceEffectEnabled() && !getVoiceEffectDefault().isNull())
|
||||
{
|
||||
LLNotificationsUtil::add("VoiceEffectsNotSupported", LLSD(), LLSD(), &LLVoiceClient::onVoiceEffectsNotSupported);
|
||||
static const LLSD args = llsd::map(
|
||||
"FAQ_URL", LLTrans::getString("no_voice_morphing_faq_url")
|
||||
);
|
||||
|
||||
LLNotificationsUtil::add("VoiceEffectsNotSupported", args, LLSD(), &LLVoiceClient::onVoiceEffectsNotSupported);
|
||||
mVoiceEffectSupportNotified = true;
|
||||
}
|
||||
return enabled;
|
||||
|
|
|
|||
|
|
@ -8837,10 +8837,11 @@ New Voice Morphs are available!
|
|||
persist="true"
|
||||
type="alertmodal">
|
||||
Voice Morphs are not supported by this viewer.
|
||||
For more information about other voice morph tools, see [[FAQ_URL] this article].
|
||||
<usetemplate
|
||||
notext="Cancel"
|
||||
name="okcancelbuttons"
|
||||
yestext="Disable Voice Morphing"/>
|
||||
ignoretext="Don't show me this again"
|
||||
name="okignore"
|
||||
yestext="OK"/>
|
||||
<tag>voice</tag>
|
||||
</notification>
|
||||
|
||||
|
|
|
|||
|
|
@ -3818,6 +3818,7 @@ Please reinstall viewer from https://secondlife.com/support/downloads/ and cont
|
|||
|
||||
<string name="voice_morphing_url">https://secondlife.com/destination/voice-island</string>
|
||||
<string name="premium_voice_morphing_url">https://secondlife.com/destination/voice-morphing-premium</string>
|
||||
<string name="no_voice_morphing_faq_url">https://lindenlab.freshdesk.com/support/solutions/articles/31000173560-webrtc-update-for-voice-chat-faq/</string>
|
||||
|
||||
<string name="lindenhomes_get_home_url">https://secondlife.com/land/lindenhomes/member.php</string>
|
||||
<string name="lindenhomes_my_home_url">https://land.secondlife.com/en-Us/lindenhomes/my-home.php</string>
|
||||
|
|
|
|||
Loading…
Reference in New Issue