You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Sathish Kumar T.K." <sa...@quinnox.com> on 2003/12/23 06:52:30 UTC

Sound Task In Build.xml

Hi,

Below is the script from Build.xml file.

Can you tell me where to put the *.wav file.
Right now i have put that  in the same directory where build.xml exist.
Its not working for me.
Thanks,
Sathish

<sound>
<success source="SUCCESS.WAV" duration="10000" loops="2"/>

<fail source="FAILURE.WAV" duration="10000" loops="2"/>

</sound>




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Sound Task In Build.xml

Posted by "Clifton C. Craig" <cc...@icsaward.com>.
Sathish Kumar T.K. wrote:

>Hi,
>
>Below is the script from Build.xml file.
>
>Can you tell me where to put the *.wav file.
>Right now i have put that  in the same directory where build.xml exist.
>Its not working for me.
>Thanks,
>Sathish
>
><sound>
><success source="SUCCESS.WAV" duration="10000" loops="2"/>
>
><fail source="FAILURE.WAV" duration="10000" loops="2"/>
>
></sound>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>  
>


Make sure the wav files are in PCM format. The sound task seems to have 
trouble with some of the audio formats. I modify my sounds to with the 
Windows sound recorder and save them in 8 bit PCM format. Just open the 
sound files in Recorder, go to properties, switch the format and re-save 
them. You can put the sounds in the same folder as the build or you can 
put them anywhere as long as the source attribute contains the path to 
the file.

Cliff

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org