OpenMetaverse Protocol Library Developers API Documentation
AttachedSoundEventArgs Class
NamespacesOpenMetaverseAttachedSoundEventArgs
Provides data for the AttachedSoundevent
Declaration Syntax
C#
public 
class 
AttachedSoundEventArgs : 
EventArgs
Members
All Members Constructors Properties



Icon Member Description
AttachedSoundEventArgs(Simulator, UUID, UUID, UUID, Single, SoundFlags)
Construct a new instance of the SoundTriggerEventArgs class

Flags
Get the SoundFlags

Gain
Get the volume level

ObjectID
Get the ID of the Object

OwnerID
Get the ID of the owner

Simulator
Simulator where the event originated

SoundID
Get the sound asset id

Remarks
The AttachedSoundevent occurs when the simulator sends the sound data which emits from an agents attachment
Examples
The following code example shows the process to subscribe to the AttachedSoundevent and a stub to handle the data passed from the simulator
  Copy imageCopy
// Subscribe to the AttachedSound
event
Client.Sound.AttachedSound += Sound_AttachedSound;

// process the data raised in the
event here
private 
void Sound_AttachedSound(
object sender,
AttachedSoundEventArgs e)
{
    
// ... Process
AttachedSoundEventArgs here ...
}
Inheritance Hierarchy
Object
EventArgs
  AttachedSoundEventArgs

Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)