diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 0f0b754b9c..704f786858 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -6758,6 +6758,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api m_host.SoundRadius = radius; } + public void llLinkSetSoundRadius(int linknumber, double radius) + { + foreach (SceneObjectPart sop in GetLinkParts(linknumber)) + sop.SoundRadius = radius; + } + public LSL_String llKey2Name(LSL_Key id) { if (UUID.TryParse(id, out UUID key) && key.IsNotZero()) @@ -16999,19 +17005,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api // This does nothing for LSO scripts in SL } + public void llSetSoundQueueing(int queue) + { + if (m_SoundModule != null) + m_SoundModule.SetSoundQueueing(m_host.UUID, queue == ScriptBaseClass.TRUE.value); + } + + public void llLinkSetSoundQueueing(int linknumber, int queue) + { + if (m_SoundModule != null) + { + foreach (SceneObjectPart sop in GetLinkParts(linknumber)) + m_SoundModule.SetSoundQueueing(sop.UUID, queue == ScriptBaseClass.TRUE.value); + } + } + #region Not Implemented // // Listing the unimplemented lsl functions here, please move // them from this region as they are completed // - - public void llSetSoundQueueing(int queue) - { - - if (m_SoundModule != null) - m_SoundModule.SetSoundQueueing(m_host.UUID, queue == ScriptBaseClass.TRUE.value); - } - public void llCollisionSprite(LSL_String impact_sprite) { // Viewer 2.0 broke this and it's likely LL has no intention diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs index 3c97518ac0..7fd74fe430 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs @@ -492,5 +492,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces void llLinkAdjustSoundVolume(LSL_Integer linknumber, LSL_Float volume); void llLinkStopSound(LSL_Integer linknumber); void llLinkPlaySound(LSL_Integer linknumber, string sound, double volume); + void llLinkSetSoundQueueing(int linknumber, int queue); + void llLinkSetSoundRadius(int linknumber, double radius); } } diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs index a991543cd1..cbb7b684cc 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs @@ -2232,5 +2232,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase { m_LSL_Functions.llLinkPlaySound(linknumber, sound, volume); } + + public void llLinkSetSoundQueueing(int linknumber, int queue) + { + m_LSL_Functions.llLinkSetSoundQueueing(linknumber, queue); + } + + public void llLinkSetSoundRadius(int linknumber, double radius) + { + m_LSL_Functions.llLinkSetSoundRadius(linknumber, radius); + } } } diff --git a/bin/ScriptSyntax.xml b/bin/ScriptSyntax.xml index a7a5c39893..2d1384a81f 100644 --- a/bin/ScriptSyntax.xml +++ b/bin/ScriptSyntax.xml @@ -1,4 +1,4 @@ -a048660b-b334-ade9-fac7-c45ea6fe34b2 +ed6c8a73-2eee-8850-88e9-5bf844e6ab3b llsd-lsl-syntax-version2 controls @@ -1661,7 +1661,7 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 OS_APIVERSION typeinteger - value21 + value22 OS_ATTACH_MSG_ALL typeinteger @@ -4844,6 +4844,13 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 volumetypefloat + llLinkSetSoundQueueing + + arguments + linknumbertypeinteger + queuetypeinteger + + llLinkSitTarget arguments @@ -6475,6 +6482,7 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 arguments agentIdtypekey notecardtypestring + includeHudstypeinteger osAgentSaveAppearance @@ -6483,7 +6491,6 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 arguments agentIdtypekey notecardtypestring - includeHudstypeinteger osAngleBetween @@ -6498,33 +6505,8 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 returninteger arguments - atypefloat - btypefloat - - - osApproxEquals - - returninteger - arguments - atypefloat - btypefloat - margintypefloat - - - osApproxEquals - - returninteger - arguments - vatypevector - vbtypevector - - - osApproxEquals - - returninteger - arguments - vatypevector - vbtypevector + ratyperotation + rbtyperotation margintypefloat @@ -6540,11 +6522,36 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 returninteger arguments - ratyperotation - rbtyperotation + vatypevector + vbtypevector margintypefloat + osApproxEquals + + returninteger + arguments + vatypevector + vbtypevector + + + osApproxEquals + + returninteger + arguments + atypefloat + btypefloat + margintypefloat + + + osApproxEquals + + returninteger + arguments + atypefloat + btypefloat + + osAvatarName2Key returnstring @@ -6688,8 +6695,6 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 returnstring arguments drawListtypestring - startXtypeinteger - startYtypeinteger endXtypeinteger endYtypeinteger @@ -6699,6 +6704,8 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 returnstring arguments drawListtypestring + startXtypeinteger + startYtypeinteger endXtypeinteger endYtypeinteger @@ -6837,13 +6844,13 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 arguments avatartypestring + targettypestring osForceOtherSit arguments avatartypestring - targettypestring osFormatString @@ -7227,15 +7234,15 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 osKickAvatar arguments - agentIdtypekey + FirstNametypestring + SurNametypestring alerttypestring osKickAvatar arguments - FirstNametypestring - SurNametypestring + agentIdtypekey alerttypestring @@ -7307,14 +7314,14 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 arguments notecardNametypestring - contentstypelist + contentstypestring osMakeNotecard arguments notecardNametypestring - contentstypestring + contentstypelist osMatchString @@ -7375,6 +7382,7 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 nametypestring positiontypevector notecardtypestring + optionstypeinteger osNpcCreate @@ -7385,7 +7393,6 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 nametypestring positiontypevector notecardtypestring - optionstypeinteger osNpcGetOwner @@ -7460,7 +7467,6 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 arguments npctypekey notecardtypestring - includeHudstypeinteger osNpcSaveAppearance @@ -7469,13 +7475,13 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 arguments npctypekey notecardtypestring + includeHudstypeinteger osNpcSay arguments npctypekey - channeltypeinteger messagetypestring @@ -7483,6 +7489,7 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 arguments npctypekey + channeltypeinteger messagetypestring @@ -7572,7 +7579,6 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 returnkey arguments notecardtypestring - includeHudstypeinteger osOwnerSaveAppearance @@ -7580,6 +7586,7 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 returnkey arguments notecardtypestring + includeHudstypeinteger osParcelJoin @@ -7950,7 +7957,7 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 osSetProjectionParams arguments - linknumbertypeinteger + primtypekey projectiontypeinteger texturetypekey fovtypefloat @@ -7961,7 +7968,7 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 osSetProjectionParams arguments - primtypekey + linknumbertypeinteger projectiontypeinteger texturetypekey fovtypefloat @@ -8057,19 +8064,19 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 osSlerp - returnrotation + returnvector arguments - atyperotation - btyperotation + atypevector + btypevector amounttypefloat osSlerp - returnvector + returnrotation arguments - atypevector - btypevector + atyperotation + btyperotation amounttypefloat @@ -8094,21 +8101,10 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 arguments srctypestring valuetypestring - starttypeinteger - counttypeinteger ignorecasetypeinteger osStringIndexOf - - returninteger - arguments - srctypestring - valuetypestring - ignorecasetypeinteger - - - osStringLastIndexOf returninteger arguments @@ -8128,6 +8124,17 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 ignorecasetypeinteger + osStringLastIndexOf + + returninteger + arguments + srctypestring + valuetypestring + starttypeinteger + counttypeinteger + ignorecasetypeinteger + + osStringRemove returnstring @@ -8161,6 +8168,7 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 arguments srctypestring starttypeinteger + lengthtypeinteger osStringSubString @@ -8169,7 +8177,6 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 arguments srctypestring starttypeinteger - lengthtypeinteger osSunGetParam @@ -8190,6 +8197,7 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 arguments agenttypestring + regionNametypestring positiontypevector lookattypevector @@ -8208,7 +8216,6 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 arguments agenttypestring - regionNametypestring positiontypevector lookattypevector @@ -8226,8 +8233,7 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 osTeleportOwner arguments - regionXtypeinteger - regionYtypeinteger + regionNametypestring positiontypevector lookattypevector @@ -8235,7 +8241,8 @@ a048660b-b334-ade9-fac7-c45ea6fe34b2 osTeleportOwner arguments - regionNametypestring + regionXtypeinteger + regionYtypeinteger positiontypevector lookattypevector