public class SoundTask.BuildAlert
extends java.lang.Object
Constructor and Description |
---|
BuildAlert() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getDuration()
Gets the duration in milliseconds the file should be played.
|
int |
getLoops()
Sets the number of times the source file should be played.
|
java.io.File |
getSource()
Gets the location of the file to get the audio.
|
void |
setDuration(java.lang.Long duration)
Sets the duration in milliseconds the file should be played; optional.
|
void |
setLoops(int loops)
Sets the number of times the source file should be played; optional.
|
void |
setSource(java.io.File source)
Sets the location of the file to get the audio; required.
|
public void setDuration(java.lang.Long duration)
duration
- the duration in millisecondspublic void setSource(java.io.File source)
source
- the name of a sound-file directory or of the audio filepublic void setLoops(int loops)
loops
- the number of loops to play the source filepublic java.io.File getSource()
public int getLoops()
public java.lang.Long getDuration()