diff options
author | UbitUmarov | 2018-04-10 21:45:11 +0100 |
---|---|---|
committer | UbitUmarov | 2018-04-10 21:45:11 +0100 |
commit | ca7bd13deed5de68f1d10994af149b4982df154c (patch) | |
tree | 3e361854204b573ad5566b008da89ae184fbfee4 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | YEngine: apply a few fixes by Mike Rieker (diff) | |
download | opensim-SC-ca7bd13deed5de68f1d10994af149b4982df154c.zip opensim-SC-ca7bd13deed5de68f1d10994af149b4982df154c.tar.gz opensim-SC-ca7bd13deed5de68f1d10994af149b4982df154c.tar.bz2 opensim-SC-ca7bd13deed5de68f1d10994af149b4982df154c.tar.xz |
sound radius is a prim prop only set by llSetSoundRadius, fix it in case viewers do fix its use (ignored for now)
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 14 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index eae4daf..9799886 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -3178,7 +3178,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3178 | return; | 3178 | return; |
3179 | 3179 | ||
3180 | // send the sound, once, to all clients in range | 3180 | // send the sound, once, to all clients in range |
3181 | m_SoundModule.SendSound(m_host.UUID, soundID, volume, false, 0, 0, false, false); | 3181 | m_SoundModule.SendSound(m_host.UUID, soundID, volume, false, 0, false, false); |
3182 | } | 3182 | } |
3183 | 3183 | ||
3184 | public void llLoopSound(string sound, double volume) | 3184 | public void llLoopSound(string sound, double volume) |
@@ -3192,7 +3192,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3192 | if(soundID == UUID.Zero) | 3192 | if(soundID == UUID.Zero) |
3193 | return; | 3193 | return; |
3194 | 3194 | ||
3195 | m_SoundModule.LoopSound(m_host.UUID, soundID, volume, 20, false,false); | 3195 | m_SoundModule.LoopSound(m_host.UUID, soundID, volume, false,false); |
3196 | } | 3196 | } |
3197 | 3197 | ||
3198 | public void llLoopSoundMaster(string sound, double volume) | 3198 | public void llLoopSoundMaster(string sound, double volume) |
@@ -3206,7 +3206,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3206 | if(soundID == UUID.Zero) | 3206 | if(soundID == UUID.Zero) |
3207 | return; | 3207 | return; |
3208 | 3208 | ||
3209 | m_SoundModule.LoopSound(m_host.UUID, soundID, volume, 20, true, false); | 3209 | m_SoundModule.LoopSound(m_host.UUID, soundID, volume, true, false); |
3210 | } | 3210 | } |
3211 | 3211 | ||
3212 | public void llLoopSoundSlave(string sound, double volume) | 3212 | public void llLoopSoundSlave(string sound, double volume) |
@@ -3220,7 +3220,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3220 | if(soundID == UUID.Zero) | 3220 | if(soundID == UUID.Zero) |
3221 | return; | 3221 | return; |
3222 | 3222 | ||
3223 | m_SoundModule.LoopSound(m_host.UUID, soundID, volume, 20, false, true); | 3223 | m_SoundModule.LoopSound(m_host.UUID, soundID, volume, false, true); |
3224 | } | 3224 | } |
3225 | 3225 | ||
3226 | public void llPlaySoundSlave(string sound, double volume) | 3226 | public void llPlaySoundSlave(string sound, double volume) |
@@ -3235,7 +3235,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3235 | return; | 3235 | return; |
3236 | 3236 | ||
3237 | // send the sound, once, to all clients in range | 3237 | // send the sound, once, to all clients in range |
3238 | m_SoundModule.SendSound(m_host.UUID, soundID, volume, false, 0, 0, true, false); | 3238 | m_SoundModule.SendSound(m_host.UUID, soundID, volume, false, 0, true, false); |
3239 | } | 3239 | } |
3240 | 3240 | ||
3241 | public void llTriggerSound(string sound, double volume) | 3241 | public void llTriggerSound(string sound, double volume) |
@@ -3250,7 +3250,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3250 | return; | 3250 | return; |
3251 | 3251 | ||
3252 | // send the sound, once, to all clients in rangeTrigger or play an attached sound in this part's inventory. | 3252 | // send the sound, once, to all clients in rangeTrigger or play an attached sound in this part's inventory. |
3253 | m_SoundModule.SendSound(m_host.UUID, soundID, volume, true, 0, 0, false, false); | 3253 | m_SoundModule.SendSound(m_host.UUID, soundID, volume, true, 0, false, false); |
3254 | } | 3254 | } |
3255 | 3255 | ||
3256 | public void llStopSound() | 3256 | public void llStopSound() |
@@ -3272,7 +3272,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3272 | if(soundID == UUID.Zero) | 3272 | if(soundID == UUID.Zero) |
3273 | return; | 3273 | return; |
3274 | 3274 | ||
3275 | m_SoundModule.PreloadSound(m_host.UUID, soundID, 0); | 3275 | m_SoundModule.PreloadSound(m_host.UUID, soundID); |
3276 | ScriptSleep(m_sleepMsOnPreloadSound); | 3276 | ScriptSleep(m_sleepMsOnPreloadSound); |
3277 | } | 3277 | } |
3278 | 3278 | ||
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 06f4fd1..781f1c9 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -4873,7 +4873,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4873 | return; | 4873 | return; |
4874 | 4874 | ||
4875 | // send the sound, once, to all clients in range | 4875 | // send the sound, once, to all clients in range |
4876 | m_SoundModule.SendSound(sop.UUID, soundID, volume, false, 0, 0, false, false); | 4876 | m_SoundModule.SendSound(sop.UUID, soundID, volume, false, 0, false, false); |
4877 | } | 4877 | } |
4878 | 4878 | ||
4879 | public void osLoopSound(LSL_Integer linknum, LSL_String sound, LSL_Float volume) | 4879 | public void osLoopSound(LSL_Integer linknum, LSL_String sound, LSL_Float volume) |
@@ -4891,7 +4891,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4891 | if(soundID == UUID.Zero) | 4891 | if(soundID == UUID.Zero) |
4892 | return; | 4892 | return; |
4893 | 4893 | ||
4894 | m_SoundModule.LoopSound(sop.UUID, soundID, volume, 20, false,false); | 4894 | m_SoundModule.LoopSound(sop.UUID, soundID, volume, false,false); |
4895 | } | 4895 | } |
4896 | 4896 | ||
4897 | public void osLoopSoundMaster(LSL_Integer linknum, LSL_String sound, LSL_Float volume) | 4897 | public void osLoopSoundMaster(LSL_Integer linknum, LSL_String sound, LSL_Float volume) |
@@ -4906,7 +4906,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4906 | if(soundID == UUID.Zero) | 4906 | if(soundID == UUID.Zero) |
4907 | return; | 4907 | return; |
4908 | 4908 | ||
4909 | m_SoundModule.LoopSound(sop.UUID, soundID, volume, 20, true, false); | 4909 | m_SoundModule.LoopSound(sop.UUID, soundID, volume, true, false); |
4910 | } | 4910 | } |
4911 | 4911 | ||
4912 | public void osLoopSoundSlave(LSL_Integer linknum, LSL_String sound, LSL_Float volume) | 4912 | public void osLoopSoundSlave(LSL_Integer linknum, LSL_String sound, LSL_Float volume) |
@@ -4924,7 +4924,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4924 | if(soundID == UUID.Zero) | 4924 | if(soundID == UUID.Zero) |
4925 | return; | 4925 | return; |
4926 | 4926 | ||
4927 | m_SoundModule.LoopSound(sop.UUID, soundID, volume, 20, false, true); | 4927 | m_SoundModule.LoopSound(sop.UUID, soundID, volume, false, true); |
4928 | } | 4928 | } |
4929 | 4929 | ||
4930 | public void osPlaySoundSlave(LSL_Integer linknum, LSL_String sound, LSL_Float volume) | 4930 | public void osPlaySoundSlave(LSL_Integer linknum, LSL_String sound, LSL_Float volume) |
@@ -4943,7 +4943,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4943 | return; | 4943 | return; |
4944 | 4944 | ||
4945 | // send the sound, once, to all clients in range | 4945 | // send the sound, once, to all clients in range |
4946 | m_SoundModule.SendSound(sop.UUID, soundID, volume, false, 0, 0, true, false); | 4946 | m_SoundModule.SendSound(sop.UUID, soundID, volume, false, 0, true, false); |
4947 | } | 4947 | } |
4948 | 4948 | ||
4949 | public void osTriggerSound(LSL_Integer linknum, LSL_String sound, LSL_Float volume) | 4949 | public void osTriggerSound(LSL_Integer linknum, LSL_String sound, LSL_Float volume) |
@@ -4962,7 +4962,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4962 | return; | 4962 | return; |
4963 | 4963 | ||
4964 | // send the sound, once, to all clients in rangeTrigger or play an attached sound in this part's inventory. | 4964 | // send the sound, once, to all clients in rangeTrigger or play an attached sound in this part's inventory. |
4965 | m_SoundModule.SendSound(sop.UUID, soundID, volume, true, 0, 0, false, false); | 4965 | m_SoundModule.SendSound(sop.UUID, soundID, volume, true, 0, false, false); |
4966 | } | 4966 | } |
4967 | 4967 | ||
4968 | public void osTriggerSoundLimited(LSL_Integer linknum, LSL_String sound, LSL_Float volume, | 4968 | public void osTriggerSoundLimited(LSL_Integer linknum, LSL_String sound, LSL_Float volume, |
@@ -5014,7 +5014,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5014 | if(soundID == UUID.Zero) | 5014 | if(soundID == UUID.Zero) |
5015 | return; | 5015 | return; |
5016 | 5016 | ||
5017 | m_SoundModule.PreloadSound(sop.UUID, soundID, 0); | 5017 | m_SoundModule.PreloadSound(sop.UUID, soundID); |
5018 | ScriptSleep(1000); | 5018 | ScriptSleep(1000); |
5019 | } | 5019 | } |
5020 | 5020 | ||