diff options
author | SignpostMarv | 2012-10-16 15:28:22 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-10-29 23:39:01 +0000 |
commit | e308841de98ed3798b1c960c84831588b6598123 (patch) | |
tree | b5c3e21b1b68fb0636b608547e4548f0240fcd3a /OpenSim | |
parent | tweaking configuration logic so that the INonSharedRegionModule will load by ... (diff) | |
download | opensim-SC-e308841de98ed3798b1c960c84831588b6598123.zip opensim-SC-e308841de98ed3798b1c960c84831588b6598123.tar.gz opensim-SC-e308841de98ed3798b1c960c84831588b6598123.tar.bz2 opensim-SC-e308841de98ed3798b1c960c84831588b6598123.tar.xz |
SianaGearz notes stop sound flag is 1 << 5, so using that for ISoundModule.StopSound rather than setting gain to zero
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs b/OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs index 68bd413..c163e86 100644 --- a/OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs +++ b/OpenSim/Region/CoreModules/World/Sound/SoundModuleNonShared.cs | |||
@@ -204,8 +204,7 @@ namespace OpenSim.Region.CoreModules.World.Sound | |||
204 | foreach (SceneObjectPart part in m_host.ParentGroup.LoopSoundSlavePrims) | 204 | foreach (SceneObjectPart part in m_host.ParentGroup.LoopSoundSlavePrims) |
205 | { | 205 | { |
206 | part.Sound = UUID.Zero; | 206 | part.Sound = UUID.Zero; |
207 | part.SoundGain = 0; | 207 | part.SoundFlags = 1 << 5; |
208 | part.SoundFlags = 0; | ||
209 | part.SoundRadius = 0; | 208 | part.SoundRadius = 0; |
210 | part.ScheduleFullUpdate(); | 209 | part.ScheduleFullUpdate(); |
211 | part.SendFullUpdateToAllClients(); | 210 | part.SendFullUpdateToAllClients(); |
@@ -216,8 +215,7 @@ namespace OpenSim.Region.CoreModules.World.Sound | |||
216 | else | 215 | else |
217 | { | 216 | { |
218 | m_host.Sound = UUID.Zero; | 217 | m_host.Sound = UUID.Zero; |
219 | m_host.SoundGain = 0; | 218 | m_host.SoundFlags = 1 << 5; |
220 | m_host.SoundFlags = 0; | ||
221 | m_host.SoundRadius = 0; | 219 | m_host.SoundRadius = 0; |
222 | m_host.ScheduleFullUpdate(); | 220 | m_host.ScheduleFullUpdate(); |
223 | m_host.SendFullUpdateToAllClients(); | 221 | m_host.SendFullUpdateToAllClients(); |
@@ -226,8 +224,7 @@ namespace OpenSim.Region.CoreModules.World.Sound | |||
226 | else | 224 | else |
227 | { | 225 | { |
228 | m_host.Sound = UUID.Zero; | 226 | m_host.Sound = UUID.Zero; |
229 | m_host.SoundGain = 0; | 227 | m_host.SoundFlags = 1 << 5; |
230 | m_host.SoundFlags = 0; | ||
231 | m_host.SoundRadius = 0; | 228 | m_host.SoundRadius = 0; |
232 | m_host.ScheduleFullUpdate(); | 229 | m_host.ScheduleFullUpdate(); |
233 | m_host.SendFullUpdateToAllClients(); | 230 | m_host.SendFullUpdateToAllClients(); |