diff options
Diffstat (limited to 'linden/indra/newview/llviewermessage.cpp')
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index 701d30d..af4b8d8 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -4058,6 +4058,19 @@ void process_sound_trigger(LLMessageSystem *msg, void **) | |||
4058 | return; | 4058 | return; |
4059 | } | 4059 | } |
4060 | 4060 | ||
4061 | // Don't load sounds if we have gestures muted -- MC | ||
4062 | if ((owner_id != gAgent.getID()) && (object_id == owner_id)) | ||
4063 | { | ||
4064 | if (gSavedSettings.getBOOL("MuteGestures")) | ||
4065 | { | ||
4066 | return; | ||
4067 | } | ||
4068 | else | ||
4069 | { | ||
4070 | gAudiop->triggerSound(sound_id, owner_id, gain, LLAudioEngine::AUDIO_TYPE_GESTURE, pos_global); | ||
4071 | } | ||
4072 | } | ||
4073 | |||
4061 | // Don't play sounds from a region with maturity above current agent maturity | 4074 | // Don't play sounds from a region with maturity above current agent maturity |
4062 | // Actually, let's -- MC | 4075 | // Actually, let's -- MC |
4063 | /*if( !gAgent.canAccessMaturityInRegion( region_handle ) ) | 4076 | /*if( !gAgent.canAccessMaturityInRegion( region_handle ) ) |
@@ -4099,11 +4112,12 @@ void process_preload_sound(LLMessageSystem *msg, void **user_data) | |||
4099 | // help us out. | 4112 | // help us out. |
4100 | 4113 | ||
4101 | // Don't play sounds from a region with maturity above current agent maturity | 4114 | // Don't play sounds from a region with maturity above current agent maturity |
4102 | LLVector3d pos_global = objectp->getPositionGlobal(); | 4115 | // Actually, let's -- MC |
4116 | /*LLVector3d pos_global = objectp->getPositionGlobal(); | ||
4103 | if( !gAgent.canAccessMaturityAtGlobal( pos_global ) ) | 4117 | if( !gAgent.canAccessMaturityAtGlobal( pos_global ) ) |
4104 | { | 4118 | { |
4105 | return; | 4119 | return; |
4106 | } | 4120 | }*/ |
4107 | 4121 | ||
4108 | // Add audioData starts a transfer internally. | 4122 | // Add audioData starts a transfer internally. |
4109 | sourcep->addAudioData(datap, FALSE); | 4123 | sourcep->addAudioData(datap, FALSE); |
@@ -4139,11 +4153,12 @@ void process_attached_sound(LLMessageSystem *msg, void **user_data) | |||
4139 | 4153 | ||
4140 | 4154 | ||
4141 | // Don't play sounds from a region with maturity above current agent maturity | 4155 | // Don't play sounds from a region with maturity above current agent maturity |
4142 | LLVector3d pos = objectp->getPositionGlobal(); | 4156 | // Actually, let's -- MC |
4157 | /*LLVector3d pos = objectp->getPositionGlobal(); | ||
4143 | if( !gAgent.canAccessMaturityAtGlobal(pos) ) | 4158 | if( !gAgent.canAccessMaturityAtGlobal(pos) ) |
4144 | { | 4159 | { |
4145 | return; | 4160 | return; |
4146 | } | 4161 | }*/ |
4147 | 4162 | ||
4148 | objectp->setAttachedSound(sound_id, owner_id, gain, flags); | 4163 | objectp->setAttachedSound(sound_id, owner_id, gain, flags); |
4149 | } | 4164 | } |