C# Class OpenMetaverse.SoundManager

Show file Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Public Properties

Property Type Description
Client GridClient

Public Methods

Method Description
SoundManager ( GridClient client ) : System
SoundTrigger ( UUID soundID ) : void

Plays a sound in the current region at full volume from avatar position

SoundTrigger ( UUID soundID, Simulator sim, System.Vector3 position, float gain ) : void

Plays a sound in the specified sim

SoundTrigger ( UUID soundID, System.Vector3 position ) : void

Plays a sound in the current region at full volume

SoundTrigger ( UUID soundID, System.Vector3 position, float gain ) : void

Plays a sound in the current region

SoundTrigger ( UUID soundID, ulong handle, System.Vector3 position, float gain ) : void

Plays a sound

Protected Methods

Method Description
AttachedSoundGainChangeHandler ( Packet packet, Simulator simulator ) : void
AttachedSoundHandler ( Packet packet, Simulator simulator ) : void
PreloadSoundHandler ( Packet packet, Simulator simulator ) : void
SoundTriggerHandler ( Packet packet, Simulator simulator ) : void

Method Details

AttachedSoundGainChangeHandler() protected method

protected AttachedSoundGainChangeHandler ( Packet packet, Simulator simulator ) : void
packet OpenMetaverse.Packets.Packet
simulator Simulator
return void

AttachedSoundHandler() protected method

protected AttachedSoundHandler ( Packet packet, Simulator simulator ) : void
packet OpenMetaverse.Packets.Packet
simulator Simulator
return void

PreloadSoundHandler() protected method

protected PreloadSoundHandler ( Packet packet, Simulator simulator ) : void
packet OpenMetaverse.Packets.Packet
simulator Simulator
return void

SoundManager() public method

public SoundManager ( GridClient client ) : System
client GridClient
return System

SoundTrigger() public method

Plays a sound in the current region at full volume from avatar position
public SoundTrigger ( UUID soundID ) : void
soundID UUID UUID of the sound to be played
return void

SoundTrigger() public method

Plays a sound in the specified sim
public SoundTrigger ( UUID soundID, Simulator sim, System.Vector3 position, float gain ) : void
soundID UUID UUID of the sound to be played.
sim Simulator UUID of the sound to be played.
position System.Vector3 position for the sound to be played at. Normally the avatar.
gain float volume of the sound, from 0.0 to 1.0
return void

SoundTrigger() public method

Plays a sound in the current region at full volume
public SoundTrigger ( UUID soundID, System.Vector3 position ) : void
soundID UUID UUID of the sound to be played.
position System.Vector3 position for the sound to be played at. Normally the avatar.
return void

SoundTrigger() public method

Plays a sound in the current region
public SoundTrigger ( UUID soundID, System.Vector3 position, float gain ) : void
soundID UUID UUID of the sound to be played.
position System.Vector3 position for the sound to be played at. Normally the avatar.
gain float volume of the sound, from 0.0 to 1.0
return void

SoundTrigger() public method

Plays a sound
public SoundTrigger ( UUID soundID, ulong handle, System.Vector3 position, float gain ) : void
soundID UUID UUID of the sound to be played.
handle ulong handle id for the sim to be played in.
position System.Vector3 position for the sound to be played at. Normally the avatar.
gain float volume of the sound, from 0.0 to 1.0
return void

SoundTriggerHandler() protected method

protected SoundTriggerHandler ( Packet packet, Simulator simulator ) : void
packet OpenMetaverse.Packets.Packet
simulator Simulator
return void

Property Details

Client public property

public GridClient,OpenMetaverse Client
return GridClient