/// <param name="e">The EventArgs object containing the packet data</param>
protected void AttachedSoundHandler(Object sender, PacketReceivedEventArgs e)
{
if (onAttachedSound != null)
{
AttachedSoundPacket sound = (AttachedSoundPacket)e.getPacket();
onAttachedSound.raiseEvent(new AttachedSoundEventArgs(e.getSimulator(), sound.DataBlock.SoundID, sound.DataBlock.OwnerID, sound.DataBlock.ObjectID,
sound.DataBlock.Gain, SoundFlags.get(sound.DataBlock.Flags)));
}
}