SoundPlayer
class SoundPlayer
It is responsible for reproducing and manipulating sounds in the 3D environment.
public class SoundPlayer
extends Component
— Constructors (1) —
Constructor | Description |
---|---|
SoundPlayer() | Creates a new SoundPlayer. |
— Methods (13) —
Name | Description |
---|---|
boolean isLoop() | Returns true if SoundPlayer has "Loop" checked, false if not. |
void setLoop(boolean value) | Sets whether SoundPlayer will loop or not to be "value" argument. |
void setSoundFile(SoundFile file) | Sets the SoundPlayer sound file to be "file" argument. |
void play() | Run SoundPlayer. |
void stop() | Stops running SoundPlayer. |
void pause() | Pauses SoundPlayer playing. |
void unPause() | Resumes playing the paused SoundPlayer. |
float getVolume() | Returns the SoundPlayer volume. |
void setVolume(float value) | Sets the SoundPlayer volume to be "value" argument. |
float getSpeed() | Returns the SoundPlayer speed. |
void setSpeed(float value) | Sets the SoundPlayer speed to be "value" argument. |
float getPitch() | Returns the SoundPlayer pitch. |
void setPitch(float value) | Sets the SoundPlayer's pitch to be "value" argument. |