public class Sound extends Asset implements Identifiable
| Modifier and Type | Field and Description |
|---|---|
float |
pitch
Changes the pitch of the sound.
|
float |
speed
Changes the speed of the sound.
|
float |
volume
Changes the volume of the sound.
|
| Constructor and Description |
|---|
Sound(java.lang.String domain,
java.lang.String name) |
Sound(java.lang.String domain,
java.lang.String name,
float pitch,
float speed,
float volume) |
| Modifier and Type | Method and Description |
|---|---|
Sound |
with(float pitch,
float speed,
float volume) |
Sound |
withPitch(float pitch) |
Sound |
withPS(float pitch,
float speed) |
Sound |
withPV(float pitch,
float volume) |
Sound |
withSpeed(float speed) |
Sound |
withSV(float speed,
float volume) |
Sound |
withVolume(float volume) |
addDefaultSuffix, equals, getID, hashCode, path, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetID, sameTypepublic final float pitch
public final float speed
public final float volume
public Sound(java.lang.String domain,
java.lang.String name)
public Sound(java.lang.String domain,
java.lang.String name,
float pitch,
float speed,
float volume)
public Sound withPitch(float pitch)
public Sound withSpeed(float speed)
public Sound withVolume(float volume)
public Sound withPS(float pitch, float speed)
public Sound withPV(float pitch, float volume)
public Sound withSV(float speed, float volume)
public Sound with(float pitch, float speed, float volume)