org.apache.tools.ant.taskdefs.optional.sound
Class SoundTask.BuildAlert
java.lang.Object
org.apache.tools.ant.taskdefs.optional.sound.SoundTask.BuildAlert
- SoundTask
public class SoundTask.BuildAlert
extends java.lang.Object
A class to be extended by any BuildAlert's that require the output
of sound.
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.
|
File | getSource() - 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 | setSource(File source) - Sets the location of the file to get the audio; required.
|
getDuration
public Long getDuration()
Gets the duration in milliseconds the file should be played.
getLoops
public int getLoops()
Sets the number of times the source file should be played.
- the number of loops to play the source file
getSource
public File getSource()
Gets the location of the file to get the audio.
setDuration
public void setDuration(Long duration)
Sets the duration in milliseconds the file should be played; optional.
setLoops
public void setLoops(int loops)
Sets the number of times the source file should be played; optional.
loops
- the number of loops to play the source file
setSource
public void setSource(File source)
Sets the location of the file to get the audio; required.
source
- the name of a sound-file directory or of the audio file
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.