aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSignpostMarv2012-10-16 15:15:03 +0100
committerJustin Clark-Casey (justincc)2012-10-29 23:39:01 +0000
commite0b5a3cd900d8ad29cdb7d43415b069d5484a424 (patch)
treee2911886b9e9f9b7bb3e7afa0eafe1d52b8601c7
parentdocumenting some params on ISoundModule methods (diff)
downloadopensim-SC-e0b5a3cd900d8ad29cdb7d43415b069d5484a424.zip
opensim-SC-e0b5a3cd900d8ad29cdb7d43415b069d5484a424.tar.gz
opensim-SC-e0b5a3cd900d8ad29cdb7d43415b069d5484a424.tar.bz2
opensim-SC-e0b5a3cd900d8ad29cdb7d43415b069d5484a424.tar.xz
tweaking configuration logic so that the INonSharedRegionModule will load by default
-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"