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

This commit is contained in:
UbitUmarov
2018-04-09 00:15:45 +01:00
parent 996de5eaf1
commit 63da4d3f99
3 changed files with 253 additions and 0 deletions

View File

@@ -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);
}
}
}