com.vwp.vuapi.objects
Class VUPointSoundObjectInfo

java.lang.Object
  extended by com.vwp.vuapi.util.VUInfo
      extended by com.vwp.vuapi.objects.VUObjectInfo
          extended by com.vwp.vuapi.objects.VUPointSoundObjectInfo

public class VUPointSoundObjectInfo
extends VUObjectInfo

Using this class npoint sound objects can be handled


Field Summary
 int attenuationFlag
           
 double diameter
           
 int loops
           
 double volume
           
static int VU_OBJECT_SOUND_ATTENUATION_LINEAR
          sound attenuation flag: attenuate linearly
static int VU_OBJECT_SOUND_ATTENUATION_LOG
          sound attenuation flag: attenuate logarithmic
static int VU_OBJECT_SOUND_ATTENUATION_SHARP
          sound attenuation flag: turn of the sound beyond the diameter sharply
 
Fields inherited from class com.vwp.vuapi.objects.VUObjectInfo
angleX, angleY, angleZ, previousID, x, y, z
 
Fields inherited from class com.vwp.vuapi.util.VUInfo
ID, name
 
Constructor Summary
VUPointSoundObjectInfo(String FileURL, int attenuationFlag, int loops, double diameter, double volume, double x, double y, double z)
          This is the constructor that has to be used for creating a new VUPointSoundObjectInfo object that can be used to set a new point sound object within aworld.
VUPointSoundObjectInfo(String FileURL, long ID, long previousID, int attenuationFlag, int loops, double diameter, double volume, double x, double y, double z)
           
 
Method Summary
 void set(VUPointSoundObjectInfo oi)
           
 
Methods inherited from class com.vwp.vuapi.objects.VUObjectInfo
set
 
Methods inherited from class com.vwp.vuapi.util.VUInfo
set
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

diameter

public double diameter

VU_OBJECT_SOUND_ATTENUATION_LINEAR

public static final int VU_OBJECT_SOUND_ATTENUATION_LINEAR
sound attenuation flag: attenuate linearly

See Also:
Constant Field Values

VU_OBJECT_SOUND_ATTENUATION_LOG

public static final int VU_OBJECT_SOUND_ATTENUATION_LOG
sound attenuation flag: attenuate logarithmic

See Also:
Constant Field Values

VU_OBJECT_SOUND_ATTENUATION_SHARP

public static final int VU_OBJECT_SOUND_ATTENUATION_SHARP
sound attenuation flag: turn of the sound beyond the diameter sharply

See Also:
Constant Field Values

loops

public int loops

volume

public double volume

attenuationFlag

public int attenuationFlag
Constructor Detail

VUPointSoundObjectInfo

public VUPointSoundObjectInfo(String FileURL,
                              long ID,
                              long previousID,
                              int attenuationFlag,
                              int loops,
                              double diameter,
                              double volume,
                              double x,
                              double y,
                              double z)

VUPointSoundObjectInfo

public VUPointSoundObjectInfo(String FileURL,
                              int attenuationFlag,
                              int loops,
                              double diameter,
                              double volume,
                              double x,
                              double y,
                              double z)
This is the constructor that has to be used for creating a new VUPointSoundObjectInfo object that can be used to set a new point sound object within aworld.

Parameters:
FileURL - the URL of the soundfile
attenuationFlag - with this flag the attenuation behavior can be defined using one of the VU_OBJECT_SOUND_ATTENUATION_-constants
loops - the number of repeat cycles for the sound, set this value to -1 for infinite looping
diameter - the diameter of the area around the objects center where the sound can be heard within
volume - the volume of the sound
x - the x coordinate of the sound sources center
y - the y coordinate of the sound sources center
z - the z coordinate of the sound sources center
Method Detail

set

public void set(VUPointSoundObjectInfo oi)