mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
committed by
UbitUmarov
parent
c0fe11a0c7
commit
dba340a447
@@ -2927,23 +2927,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
switch (flags)
|
||||
{
|
||||
case 0: // play
|
||||
case ScriptBaseClass.SOUND_PLAY: // play
|
||||
foreach (SceneObjectPart sop in parts)
|
||||
m_SoundModule.SendSound(sop, soundID, volume, false, 0, false, false);
|
||||
break;
|
||||
case 1: // loop
|
||||
case ScriptBaseClass.SOUND_LOOP: // loop
|
||||
foreach (SceneObjectPart sop in parts)
|
||||
m_SoundModule.LoopSound(sop, soundID, volume, false, false);
|
||||
break;
|
||||
case 2: //trigger
|
||||
case ScriptBaseClass.SOUND_TRIGGER: //trigger
|
||||
foreach (SceneObjectPart sop in parts)
|
||||
m_SoundModule.SendSound(sop, soundID, volume, true, 0, false, false);
|
||||
break;
|
||||
case 4: // play slave
|
||||
case ScriptBaseClass.SOUND_SYNC: // play slave
|
||||
foreach (SceneObjectPart sop in parts)
|
||||
m_SoundModule.SendSound(sop, soundID, volume, false, 0, true, false);
|
||||
break;
|
||||
case 5: // loop slave
|
||||
case ScriptBaseClass.SOUND_SYNC | ScriptBaseClass.SOUND_LOOP: // loop slave
|
||||
foreach (SceneObjectPart sop in parts)
|
||||
m_SoundModule.LoopSound(sop, soundID, volume, false, true);
|
||||
break;
|
||||
|
||||
@@ -1690,13 +1690,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
LSL_Integer osGetSittingAvatarsCount()
|
||||
public LSL_Integer osGetSittingAvatarsCount()
|
||||
{
|
||||
return m_OSSL_Functions.osGetSittingAvatarsCount();
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
LSL_Integer osGetSittingAvatarsCount(LSL_Key object_id)
|
||||
public LSL_Integer osGetSittingAvatarsCount(LSL_Key object_id)
|
||||
{
|
||||
return m_OSSL_Functions.osGetSittingAvatarsCount(object_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user