Renaming module back to SoundModule as the hypothetical plan was to make another module using the shared region module interface, but this was pointed out by Melanie_T to be mostly pointless.

integration
SignpostMarv 2012-10-29 16:05:02 +00:00 committed by Justin Clark-Casey (justincc)
parent e308841de9
commit a16ddbee41
2 changed files with 5 additions and 6 deletions

View File

@ -39,8 +39,8 @@ using OpenSim.Region.Framework.Scenes;
namespace OpenSim.Region.CoreModules.World.Sound namespace OpenSim.Region.CoreModules.World.Sound
{ {
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "SoundModuleNonShared")] [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "SoundModule")]
public class SoundModuleNonShared : INonSharedRegionModule, ISoundModule public class SoundModule : INonSharedRegionModule, ISoundModule
{ {
private static readonly ILog m_log = LogManager.GetLogger( private static readonly ILog m_log = LogManager.GetLogger(
MethodBase.GetCurrentMethod().DeclaringType); MethodBase.GetCurrentMethod().DeclaringType);
@ -64,7 +64,7 @@ namespace OpenSim.Region.CoreModules.World.Sound
} }
else else
{ {
Enabled = config.GetString("Module", "SoundModuleNonShared") == "SoundModuleNonShared"; Enabled = config.GetString("Module", "SoundModule") == "SoundModule";
MaxDistance = config.GetFloat("MaxDistance", 100.0f); MaxDistance = config.GetFloat("MaxDistance", 100.0f);
} }
} }

View File

@ -1688,9 +1688,8 @@ Enabled = False
AutoBackupModuleEnabled = false AutoBackupModuleEnabled = false
[Sounds] [Sounds]
;; {Module} {} {Implementation of ISoundModule to use.} {SoundModuleNonShared} ;; {Module} {} {Implementation of ISoundModule to use.} {SoundModule}
;; Currently only INonSharedRegionModule module is implemented. Module = SoundModule
Module = SoundModuleNonShared
;; {MaxDistance} {} {Cut-off distance at which sounds will not be sent to users} {100.0} ;; {MaxDistance} {} {Cut-off distance at which sounds will not be sent to users} {100.0}
MaxDistance = 100.0 MaxDistance = 100.0