com.threerings.media.sound
Interface SoundPlayer.Frob

All Known Implementing Classes:
JavaSoundPlayer.SoundKey
Enclosing class:
SoundPlayer

public static interface SoundPlayer.Frob

A control for sounds.


Method Summary
 float getPan()
          Get the pan value of this sound.
 float getVolume()
          Get the volume of this sound.
 void setPan(float pan)
          Set the pan value for the sound.
 void setVolume(float vol)
          Set the volume of the sound.
 void stop()
          Stop playing or looping the sound.
 

Method Detail

stop

void stop()
Stop playing or looping the sound. At present, the granularity of this command is limited to the buffer size of the line spooler, or about 8k of data. Thus, if playing an 11khz sample, it could take 8/11ths of a second for the sound to actually stop playing.


setVolume

void setVolume(float vol)
Set the volume of the sound.


getVolume

float getVolume()
Get the volume of this sound.


setPan

void setPan(float pan)
Set the pan value for the sound. Valid values are -1 for left-only, 0 is centered, all the way to +1 for right-only.


getPan

float getPan()
Get the pan value of this sound.