aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 681feea..3a39da0 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -2684,6 +2684,10 @@ namespace OpenSim.Region.Framework.Scenes
2684 /// <param name="flags"></param> 2684 /// <param name="flags"></param>
2685 public void SendSound(string sound, double volume, bool triggered, byte flags, float radius, bool useMaster, bool isMaster) 2685 public void SendSound(string sound, double volume, bool triggered, byte flags, float radius, bool useMaster, bool isMaster)
2686 { 2686 {
2687 ISoundModule soundModule = ParentGroup.Scene.RequestModuleInterface<ISoundModule>();
2688 if(soundModule == null)
2689 return;
2690
2687 volume = Util.Clip((float)volume, 0, 1); 2691 volume = Util.Clip((float)volume, 0, 1);
2688 2692
2689 UUID ownerID = OwnerID; 2693 UUID ownerID = OwnerID;
@@ -2713,9 +2717,6 @@ namespace OpenSim.Region.Framework.Scenes
2713 if (soundID == UUID.Zero) 2717 if (soundID == UUID.Zero)
2714 return; 2718 return;
2715 2719
2716 ISoundModule soundModule = ParentGroup.Scene.RequestModuleInterface<ISoundModule>();
2717 if (soundModule != null)
2718 {
2719 if (useMaster) 2720 if (useMaster)
2720 { 2721 {
2721 if (isMaster) 2722 if (isMaster)
@@ -2761,7 +2762,6 @@ namespace OpenSim.Region.Framework.Scenes
2761 else 2762 else
2762 soundModule.PlayAttachedSound(soundID, ownerID, objectID, volume, position, flags, radius); 2763 soundModule.PlayAttachedSound(soundID, ownerID, objectID, volume, position, flags, radius);
2763 } 2764 }
2764 }
2765 } 2765 }
2766 2766
2767 /// <summary> 2767 /// <summary>