aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs13
-rw-r--r--bin/OpenSimDefaults.ini8
2 files changed, 17 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs b/OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs
index ac7f7b4..68bd413 100644
--- a/OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs
+++ b/OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs
@@ -58,10 +58,15 @@ namespace OpenSim.Region.CoreModules.World.Sound
58 IConfig config = configSource.Configs["Sounds"]; 58 IConfig config = configSource.Configs["Sounds"];
59 59
60 if (config == null) 60 if (config == null)
61 return; 61 {
62 62 Enabled = true;
63 Enabled = config.GetString("Module", "SoundModuleNonShared") == "SoundModuleNonShared"; 63 MaxDistance = 100.0f;
64 MaxDistance = config.GetFloat("MaxDistance", 100.0f); 64 }
65 else
66 {
67 Enabled = config.GetString("Module", "SoundModuleNonShared") == "SoundModuleNonShared";
68 MaxDistance = config.GetFloat("MaxDistance", 100.0f);
69 }
65 } 70 }
66 71
67 public void AddRegion(Scene scene) { } 72 public void AddRegion(Scene scene) { }
diff --git a/bin/OpenSimDefaults.ini b/bin/OpenSimDefaults.ini
index dffc0ac..afb6fed 100644
--- a/bin/OpenSimDefaults.ini
+++ b/bin/OpenSimDefaults.ini
@@ -1687,5 +1687,13 @@ Enabled = False
1687 ;; default is module is disabled at the top level 1687 ;; default is module is disabled at the top level
1688 AutoBackupModuleEnabled = false 1688 AutoBackupModuleEnabled = false
1689 1689
1690[Sounds]
1691 ;; {Module} {} {Implementation of ISoundModule to use.} {SoundModuleNonShared}
1692 ;; Currently only INonSharedRegionModule module is implemented.
1693 Module = SoundModuleNonShared
1694
1695 ;; {MaxDistance} {} {Cut-off distance at which sounds will not be sent to users} {100.0}
1696 MaxDistance = 100.0
1697
1690[Modules] 1698[Modules]
1691 Include-modules = "addon-modules/*/config/*.ini" 1699 Include-modules = "addon-modules/*/config/*.ini"