SianaGearz notes stop sound flag is 1 << 5, so using that for ISoundModule.StopSound rather than setting gain to zero
parent
e0b5a3cd90
commit
e308841de9
|
@ -204,8 +204,7 @@ namespace OpenSim.Region.CoreModules.World.Sound
|
||||||
foreach (SceneObjectPart part in m_host.ParentGroup.LoopSoundSlavePrims)
|
foreach (SceneObjectPart part in m_host.ParentGroup.LoopSoundSlavePrims)
|
||||||
{
|
{
|
||||||
part.Sound = UUID.Zero;
|
part.Sound = UUID.Zero;
|
||||||
part.SoundGain = 0;
|
part.SoundFlags = 1 << 5;
|
||||||
part.SoundFlags = 0;
|
|
||||||
part.SoundRadius = 0;
|
part.SoundRadius = 0;
|
||||||
part.ScheduleFullUpdate();
|
part.ScheduleFullUpdate();
|
||||||
part.SendFullUpdateToAllClients();
|
part.SendFullUpdateToAllClients();
|
||||||
|
@ -216,8 +215,7 @@ namespace OpenSim.Region.CoreModules.World.Sound
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_host.Sound = UUID.Zero;
|
m_host.Sound = UUID.Zero;
|
||||||
m_host.SoundGain = 0;
|
m_host.SoundFlags = 1 << 5;
|
||||||
m_host.SoundFlags = 0;
|
|
||||||
m_host.SoundRadius = 0;
|
m_host.SoundRadius = 0;
|
||||||
m_host.ScheduleFullUpdate();
|
m_host.ScheduleFullUpdate();
|
||||||
m_host.SendFullUpdateToAllClients();
|
m_host.SendFullUpdateToAllClients();
|
||||||
|
@ -226,8 +224,7 @@ namespace OpenSim.Region.CoreModules.World.Sound
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_host.Sound = UUID.Zero;
|
m_host.Sound = UUID.Zero;
|
||||||
m_host.SoundGain = 0;
|
m_host.SoundFlags = 1 << 5;
|
||||||
m_host.SoundFlags = 0;
|
|
||||||
m_host.SoundRadius = 0;
|
m_host.SoundRadius = 0;
|
||||||
m_host.ScheduleFullUpdate();
|
m_host.ScheduleFullUpdate();
|
||||||
m_host.SendFullUpdateToAllClients();
|
m_host.SendFullUpdateToAllClients();
|
||||||
|
|
Loading…
Reference in New Issue