Implemented avatar sounds in Simian

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2184 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
2008-08-29 20:31:12 +00:00
parent 36bed01326
commit a6662645b3
2 changed files with 21 additions and 14 deletions

View File

@@ -58,20 +58,6 @@ namespace Simian.Extensions
updateTimer.Dispose();
}
public void TriggerSound(Agent agent, UUID soundID)
{
SoundTriggerPacket sound = new SoundTriggerPacket();
sound.SoundData.Handle = server.RegionHandle;
sound.SoundData.ObjectID = agent.AgentID;
sound.SoundData.ParentID = agent.AgentID;
sound.SoundData.OwnerID = agent.AgentID;
sound.SoundData.Position = agent.Avatar.Position;
sound.SoundData.SoundID = soundID;
sound.SoundData.Gain = 1f;
server.UDP.BroadcastPacket(sound, PacketCategory.State);
}
void UpdateTimer_Elapsed(object sender)
{
int tick = Environment.TickCount;