This program invokes the main class from audio1 to generate a sound clip within a for loop.
audio2.java
class audio2 { public static void main(String[] args) { audio1 aud = new audio1("cuckoo.wav"); for (int count=0; count<5; count++) { aud.play(); } } }
Maintained by John Loomis, updated Thu May 07 16:51:14 2020