Playing an audio file multiple times (Clip)
Purpose. Plays a single audio file multiple times in sequence. Demonstrates the usage of Java Sound's Clip.Usage.
java ClipPlayer audiofile #loops
Parameters. - audiofile
- the name of the audio file that should be played
- #loops
- how often the file should be repeated (0 means play once)
Source code here
Source :http://www.jsresources.org
No comments:
Post a Comment