Class SoundTask.BuildAlert
- java.lang.Object
- 
- org.apache.tools.ant.taskdefs.optional.sound.SoundTask.BuildAlert
 
- 
- Enclosing class:
- SoundTask
 
 public class SoundTask.BuildAlert extends java.lang.ObjectA class to be extended by any BuildAlert's that require the output of sound.
- 
- 
Constructor SummaryConstructors Constructor Description BuildAlert()
 - 
Method SummaryModifier and Type Method Description java.lang.LonggetDuration()Gets the duration in milliseconds the file should be played.intgetLoops()Sets the number of times the source file should be played.java.io.FilegetSource()Gets the location of the file to get the audio.voidsetDuration(java.lang.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.voidsetSource(java.io.File source)Sets the location of the file to get the audio; required.
 
- 
- 
- 
Method Detail- 
setDurationpublic void setDuration(java.lang.Long duration) Sets the duration in milliseconds the file should be played; optional.- Parameters:
- duration- the duration in milliseconds
 
 - 
setSourcepublic void setSource(java.io.File source) 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
 
 - 
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
 
 - 
getSourcepublic java.io.File getSource() Gets the location of the file to get the audio.- Returns:
- the file location
 
 - 
getLoopspublic int getLoops() Sets the number of times the source file should be played.- Returns:
- the number of loops to play the source file
 
 - 
getDurationpublic java.lang.Long getDuration() Gets the duration in milliseconds the file should be played.- Returns:
- the duration in milliseconds
 
 
- 
 
-