Mantis#1942. Thank you kindly, Tyre for a patch that:

updates llTriggerSound() so it accepts an object inventory name too
This adds the same functionality like Xantor's patch for llPlaySound()
0.6.0-stable
Charles Krinke 2008-08-13 15:01:45 +00:00
parent 4a2d5d92cc
commit 9f9e7d98ea
2 changed files with 4 additions and 2 deletions

View File

@ -1807,7 +1807,8 @@ namespace OpenSim.Region.ScriptEngine.Common
public void llTriggerSound(string sound, double volume)
{
m_host.AddScriptLPS(1);
m_host.SendSound(sound, volume, true, 0);
// send the sound, once, to all clients in range
m_host.SendSound(KeyOrName(sound).ToString(), volume, false, 0);
}
// Xantor 20080528: Clear prim data of sound instead

View File

@ -1659,7 +1659,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public void llTriggerSound(string sound, double volume)
{
m_host.AddScriptLPS(1);
m_host.SendSound(sound, volume, true, 0);
// send the sound, once, to all clients in range
m_host.SendSound(KeyOrName(sound).ToString(), volume, false, 0);
}
// Xantor 20080528: Clear prim data of sound instead