com.vwp.vuapi.sound
Class NonSpatialSound

java.lang.Object
  extended by com.vwp.vuapi.sound.NonSpatialSound

public class NonSpatialSound
extends Object


Field Summary
 String FileURL
          The URL of the soundfile that is replayed
 com.vwp.net.PlayThread playInstance
           
 double radius
          The radius from the sound sources center position that defines the area where the sound can be heared
 int volume
          The volume of the sound at the center position of the sound source
 double x
          The x, y and z coordinates of the sound sources position within a world
 double y
          The x, y and z coordinates of the sound sources position within a world
 double z
          The x, y and z coordinates of the sound sources position within a world
 
Constructor Summary
NonSpatialSound(String FileURL, double x, double y, double z, double radius, int volume)
          This constructor normally doesn't has to be used by an application, it is called by the API-internal functions only
NonSpatialSound(String FileURL, double x, double y, double z, double radius, int volume, long ID)
          This constructor doesn't has to be used by an application, it is called by the API-internal functions only
 
Method Summary
 long getID()
          Get the unique ID of this sound
 void set(double x, double y, double z, double radius, int volume)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FileURL

public String FileURL
The URL of the soundfile that is replayed


x

public double x
The x, y and z coordinates of the sound sources position within a world


y

public double y
The x, y and z coordinates of the sound sources position within a world


z

public double z
The x, y and z coordinates of the sound sources position within a world


radius

public double radius
The radius from the sound sources center position that defines the area where the sound can be heared


volume

public int volume
The volume of the sound at the center position of the sound source


playInstance

public com.vwp.net.PlayThread playInstance
Constructor Detail

NonSpatialSound

public NonSpatialSound(String FileURL,
                       double x,
                       double y,
                       double z,
                       double radius,
                       int volume)
This constructor normally doesn't has to be used by an application, it is called by the API-internal functions only


NonSpatialSound

public NonSpatialSound(String FileURL,
                       double x,
                       double y,
                       double z,
                       double radius,
                       int volume,
                       long ID)
This constructor doesn't has to be used by an application, it is called by the API-internal functions only

Method Detail

getID

public long getID()
Get the unique ID of this sound

Returns:
the unique identifier that belongs to this non-spatial sound

set

public void set(double x,
                double y,
                double z,
                double radius,
                int volume)