Class SoundTask.BuildAlert
java.lang.Object
org.apache.tools.ant.taskdefs.optional.sound.SoundTask.BuildAlert
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets the duration in milliseconds the file should be played.intgetLoops()Sets the number of times the source file should be played.Gets the location of the file to get the audio.voidsetDuration(Long duration) Sets the duration in milliseconds the file should be played; optional.voidsetLoops(int loops) Sets the number of times the source file should be played; optional.voidSets the location of the file to get the audio; required.
- 
Constructor Details- 
BuildAlertpublic BuildAlert()
 
- 
- 
Method Details- 
setDurationSets the duration in milliseconds the file should be played; optional.- Parameters:
- duration- the duration in milliseconds
 
- 
setSourceSets the location of the file to get the audio; required.- Parameters:
- source- the name of a sound-file directory or of the audio file
 
- 
setLoopspublic 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
- 
getLoopspublic int getLoops()Sets the number of times the source file should be played.- Returns:
- the number of loops to play the source file
 
- 
getDurationGets the duration in milliseconds the file should be played.- Returns:
- the duration in milliseconds
 
 
-