From 63da4d3f99a292aff6963f4d453ec3911be51b62 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 9 Apr 2018 00:15:45 +0100 Subject: mantis 8305: add several ossl sound funtions that accept a link number for the prim associated to that sound. The link number must point to a single prim --- .../ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs index 16b368c..aa37159 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs @@ -1216,5 +1216,54 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase return m_OSSL_Functions.osAngleBetween(a, b); } + public void osAdjustSoundVolume(LSL_Integer linknum, LSL_Float volume) + { + m_OSSL_Functions.osAdjustSoundVolume(linknum, volume); + } + + public void osSetSoundRadius(LSL_Integer linknum, LSL_Float radius) + { + m_OSSL_Functions.osSetSoundRadius(linknum, radius); + } + + public void osPlaySound(LSL_Integer linknum, LSL_String sound, LSL_Float volume) + { + m_OSSL_Functions.osPlaySound(linknum, sound, volume); + } + + public void osLoopSound(LSL_Integer linknum, LSL_String sound, LSL_Float volume) + { + m_OSSL_Functions.osLoopSound(linknum, sound, volume); + } + + public void osLoopSoundMaster(LSL_Integer linknum, LSL_String sound, LSL_Float volume) + { + m_OSSL_Functions.osLoopSoundMaster(linknum, sound, volume); + } + + public void osLoopSoundSlave(LSL_Integer linknum, LSL_String sound, LSL_Float volume) + { + m_OSSL_Functions.osLoopSoundSlave(linknum, sound, volume); + } + + public void osPlaySoundSlave(LSL_Integer linknum, LSL_String sound, LSL_Float volume) + { + m_OSSL_Functions.osPlaySoundSlave(linknum, sound, volume); + } + + public void osTriggerSound(LSL_Integer linknum, LSL_String sound, LSL_Float volume) + { + m_OSSL_Functions.osTriggerSound(linknum, sound, volume); + } + + public void osStopSound(LSL_Integer linknum) + { + m_OSSL_Functions.osStopSound(linknum); + } + + public void osPreloadSound(LSL_Integer linknum, LSL_String sound) + { + m_OSSL_Functions.osPreloadSound(linknum, sound); + } } } -- cgit v1.1