aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2010-11-17 17:54:32 +0100
committerMelanie2010-11-17 17:54:32 +0100
commit2e5ae1b013e2960f6651bc8cf2d74cfbb181012e (patch)
tree6608ba952627ac140fc4d8ebf49209ae2c81b84e
parentRecalculate prim counts when a parcel is deeded (diff)
downloadopensim-SC-2e5ae1b013e2960f6651bc8cf2d74cfbb181012e.zip
opensim-SC-2e5ae1b013e2960f6651bc8cf2d74cfbb181012e.tar.gz
opensim-SC-2e5ae1b013e2960f6651bc8cf2d74cfbb181012e.tar.bz2
opensim-SC-2e5ae1b013e2960f6651bc8cf2d74cfbb181012e.tar.xz
Fix gesture and viewer preview sounds not playing
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs5
-rw-r--r--OpenSim/Region/CoreModules/World/Sound/SoundModule.cs20
2 files changed, 16 insertions, 9 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index c6ce1b6..5419ede 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -6047,8 +6047,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
6047 SoundTrigger handlerSoundTrigger = OnSoundTrigger; 6047 SoundTrigger handlerSoundTrigger = OnSoundTrigger;
6048 if (handlerSoundTrigger != null) 6048 if (handlerSoundTrigger != null)
6049 { 6049 {
6050 handlerSoundTrigger(soundTriggerPacket.SoundData.SoundID, soundTriggerPacket.SoundData.OwnerID, 6050 // UUIDS are sent as zeroes by the client, substitute agent's id
6051 soundTriggerPacket.SoundData.ObjectID, soundTriggerPacket.SoundData.ParentID, 6051 handlerSoundTrigger(soundTriggerPacket.SoundData.SoundID, AgentId,
6052 AgentId, AgentId,
6052 soundTriggerPacket.SoundData.Gain, soundTriggerPacket.SoundData.Position, 6053 soundTriggerPacket.SoundData.Gain, soundTriggerPacket.SoundData.Position,
6053 soundTriggerPacket.SoundData.Handle, 0); 6054 soundTriggerPacket.SoundData.Handle, 0);
6054 6055
diff --git a/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs b/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs
index abd28c8..8df44fe 100644
--- a/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs
+++ b/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs
@@ -106,14 +106,20 @@ namespace OpenSim.Region.CoreModules.World.Sound
106 { 106 {
107 SceneObjectPart part = m_scene.GetSceneObjectPart(objectID); 107 SceneObjectPart part = m_scene.GetSceneObjectPart(objectID);
108 if (part == null) 108 if (part == null)
109 return;
110
111 SceneObjectGroup grp = part.ParentGroup;
112
113 if (grp.IsAttachment && grp.GetAttachmentPoint() > 30)
114 { 109 {
115 objectID = ownerID; 110 ScenePresence sp;
116 parentID = ownerID; 111 if (!m_scene.TryGetScenePresence(objectID, out sp))
112 return;
113 }
114 else
115 {
116 SceneObjectGroup grp = part.ParentGroup;
117
118 if (grp.IsAttachment && grp.GetAttachmentPoint() > 30)
119 {
120 objectID = ownerID;
121 parentID = ownerID;
122 }
117 } 123 }
118 124
119 m_scene.ForEachScenePresence(delegate(ScenePresence sp) 125 m_scene.ForEachScenePresence(delegate(ScenePresence sp)