Package com.ngt.jopenmetaverse.shared.protocol

Examples of com.ngt.jopenmetaverse.shared.protocol.SoundTriggerPacket$SoundDataBlock


      /// <param name="handle">handle id for the sim to be played in.</param>
      /// <param name="position">position for the sound to be played at. Normally the avatar.</param>
      /// <param name="gain">volume of the sound, from 0.0 to 1.0</param>
      public void SendSoundTrigger(UUID soundID, BigInteger handle, Vector3 position, float gain)
      {
          SoundTriggerPacket soundtrigger = new SoundTriggerPacket();
          soundtrigger.SoundData = new SoundTriggerPacket.SoundDataBlock();
          soundtrigger.SoundData.SoundID = soundID;
          soundtrigger.SoundData.ObjectID = UUID.Zero;
          soundtrigger.SoundData.OwnerID = UUID.Zero;
          soundtrigger.SoundData.ParentID = UUID.Zero;
View Full Code Here


      /// <param name="e">The EventArgs object containing the packet data</param>
      protected void SoundTriggerHandler(Object sender, PacketReceivedEventArgs e)
      {           
          if (onSoundTrigger != null)
          {
              SoundTriggerPacket trigger = (SoundTriggerPacket)e.getPacket();
              onSoundTrigger.raiseEvent(new SoundTriggerEventArgs(e.getSimulator(),
                      trigger.SoundData.SoundID,
                      trigger.SoundData.OwnerID,
                      trigger.SoundData.ObjectID,
                      trigger.SoundData.ParentID,
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.protocol.SoundTriggerPacket$SoundDataBlock

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.