public class SoundTask extends Task
source
: the location of the audio file to be played
duration
: play the sound file continuously until "duration" milliseconds has expired
loops
: the number of times the sound file should be played until stopped
I have only tested this with .WAV and .AIFF sound file formats. Both seem
to work fine.
plans for the future:
- use the midi api to define sounds (or drum beat etc) in xml and have
Ant play them backModifier and Type | Class and Description |
---|---|
class |
SoundTask.BuildAlert
A class to be extended by any BuildAlert's that require the output
of sound.
|
description, location, project
Constructor and Description |
---|
SoundTask()
Constructor for SoundTask.
|
Modifier and Type | Method and Description |
---|---|
SoundTask.BuildAlert |
createFail()
add a sound when the build fails
|
SoundTask.BuildAlert |
createSuccess()
add a sound when the build succeeds
|
void |
execute()
Execute the task.
|
void |
init()
Initialize the task.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
public SoundTask.BuildAlert createSuccess()
public SoundTask.BuildAlert createFail()