diff options
author | Teravus Ovares | 2008-02-04 14:40:46 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-02-04 14:40:46 +0000 |
commit | 3ff5ad1ed3118525c31974f8ea9b3cf16861c783 (patch) | |
tree | caaa038a912bf765657dbab37a171abdbad88432 /OpenSim/Region/ClientStack/ClientView.cs | |
parent | * Replacing missing break statement from DotNetEngine/Compiler/LSL/Compiler.cs (diff) | |
download | opensim-SC_OLD-3ff5ad1ed3118525c31974f8ea9b3cf16861c783.zip opensim-SC_OLD-3ff5ad1ed3118525c31974f8ea9b3cf16861c783.tar.gz opensim-SC_OLD-3ff5ad1ed3118525c31974f8ea9b3cf16861c783.tar.bz2 opensim-SC_OLD-3ff5ad1ed3118525c31974f8ea9b3cf16861c783.tar.xz |
Patch from mikkopa/_someone Thanks! adds support for llPreloadSound, llTriggerSound, llPlaySound, llPreloadSound.
* Time to make music boxes?
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index 167e4c3..e89b722 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -1349,6 +1349,20 @@ namespace OpenSim.Region.ClientStack | |||
1349 | OutPacket(sound, ThrottleOutPacketType.Task); | 1349 | OutPacket(sound, ThrottleOutPacketType.Task); |
1350 | } | 1350 | } |
1351 | 1351 | ||
1352 | public void SendTriggeredSound(LLUUID soundID, LLUUID ownerID, LLUUID objectID, LLUUID parentID, ulong handle, LLVector3 position, float gain) | ||
1353 | { | ||
1354 | SoundTriggerPacket sound = (SoundTriggerPacket)PacketPool.Instance.GetPacket(PacketType.SoundTrigger); | ||
1355 | sound.SoundData.SoundID = soundID; | ||
1356 | sound.SoundData.OwnerID = ownerID; | ||
1357 | sound.SoundData.ObjectID = objectID; | ||
1358 | sound.SoundData.ParentID = parentID; | ||
1359 | sound.SoundData.Handle = handle; | ||
1360 | sound.SoundData.Position = position; | ||
1361 | sound.SoundData.Gain = gain; | ||
1362 | |||
1363 | OutPacket(sound, ThrottleOutPacketType.Task); | ||
1364 | } | ||
1365 | |||
1352 | public void SendSunPos(LLVector3 sunPos, LLVector3 sunVel) | 1366 | public void SendSunPos(LLVector3 sunPos, LLVector3 sunVel) |
1353 | { | 1367 | { |
1354 | SimulatorViewerTimeMessagePacket viewertime = (SimulatorViewerTimeMessagePacket)PacketPool.Instance.GetPacket(PacketType.SimulatorViewerTimeMessage); | 1368 | SimulatorViewerTimeMessagePacket viewertime = (SimulatorViewerTimeMessagePacket)PacketPool.Instance.GetPacket(PacketType.SimulatorViewerTimeMessage); |