aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewermessage.cpp')
-rw-r--r--linden/indra/newview/llviewermessage.cpp23
1 files changed, 19 insertions, 4 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp
index 140b517..ca7c613 100644
--- a/linden/indra/newview/llviewermessage.cpp
+++ b/linden/indra/newview/llviewermessage.cpp
@@ -3959,6 +3959,19 @@ void process_sound_trigger(LLMessageSystem *msg, void **)
3959 return; 3959 return;
3960 } 3960 }
3961 3961
3962 // Don't load sounds if we have gestures muted -- MC
3963 if ((owner_id != gAgent.getID()) && (object_id == owner_id))
3964 {
3965 if (gSavedSettings.getBOOL("MuteGestures"))
3966 {
3967 return;
3968 }
3969 else
3970 {
3971 gAudiop->triggerSound(sound_id, owner_id, gain, LLAudioEngine::AUDIO_TYPE_GESTURE, pos_global);
3972 }
3973 }
3974
3962 // Don't play sounds from a region with maturity above current agent maturity 3975 // Don't play sounds from a region with maturity above current agent maturity
3963 // Actually, let's -- MC 3976 // Actually, let's -- MC
3964 /*if( !gAgent.canAccessMaturityInRegion( region_handle ) ) 3977 /*if( !gAgent.canAccessMaturityInRegion( region_handle ) )
@@ -4000,11 +4013,12 @@ void process_preload_sound(LLMessageSystem *msg, void **user_data)
4000 // help us out. 4013 // help us out.
4001 4014
4002 // Don't play sounds from a region with maturity above current agent maturity 4015 // Don't play sounds from a region with maturity above current agent maturity
4003 LLVector3d pos_global = objectp->getPositionGlobal(); 4016 // Actually, let's -- MC
4017 /*LLVector3d pos_global = objectp->getPositionGlobal();
4004 if( !gAgent.canAccessMaturityAtGlobal( pos_global ) ) 4018 if( !gAgent.canAccessMaturityAtGlobal( pos_global ) )
4005 { 4019 {
4006 return; 4020 return;
4007 } 4021 }*/
4008 4022
4009 // Add audioData starts a transfer internally. 4023 // Add audioData starts a transfer internally.
4010 sourcep->addAudioData(datap, FALSE); 4024 sourcep->addAudioData(datap, FALSE);
@@ -4040,11 +4054,12 @@ void process_attached_sound(LLMessageSystem *msg, void **user_data)
4040 4054
4041 4055
4042 // Don't play sounds from a region with maturity above current agent maturity 4056 // Don't play sounds from a region with maturity above current agent maturity
4043 LLVector3d pos = objectp->getPositionGlobal(); 4057 // Actually, let's -- MC
4058 /*LLVector3d pos = objectp->getPositionGlobal();
4044 if( !gAgent.canAccessMaturityAtGlobal(pos) ) 4059 if( !gAgent.canAccessMaturityAtGlobal(pos) )
4045 { 4060 {
4046 return; 4061 return;
4047 } 4062 }*/
4048 4063
4049 objectp->setAttachedSound(sound_id, owner_id, gain, flags); 4064 objectp->setAttachedSound(sound_id, owner_id, gain, flags);
4050} 4065}