Class SoundTask.BuildAlert
java.lang.Object
org.apache.tools.ant.taskdefs.optional.sound.SoundTask.BuildAlert
- Enclosing class:
SoundTask
A class to be extended by any BuildAlert's that require the output
of sound.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the duration in milliseconds the file should be played.int
getLoops()
Sets the number of times the source file should be played.Gets the location of the file to get the audio.void
setDuration
(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
Sets the location of the file to get the audio; required.
-
Constructor Details
-
BuildAlert
public BuildAlert()
-
-
Method Details
-
setDuration
Sets the duration in milliseconds the file should be played; optional.- Parameters:
duration
- the duration in milliseconds
-
setSource
Sets the location of the file to get the audio; required.- Parameters:
source
- the name of a sound-file directory or of the audio file
-
setLoops
public void setLoops(int loops) Sets the number of times the source file should be played; optional.- Parameters:
loops
- the number of loops to play the source file
-
getSource
Gets the location of the file to get the audio.- Returns:
- the file location
-
getLoops
public int getLoops()Sets the number of times the source file should be played.- Returns:
- the number of loops to play the source file
-
getDuration
Gets the duration in milliseconds the file should be played.- Returns:
- the duration in milliseconds
-