Article View: borland.public.jbuilder.java.language
Article #17575Applet.newAudioClip() not working?
From: John W. Scott
Date: Tue, 20 Oct 1998 00:00
Date: Tue, 20 Oct 1998 00:00
26 lines
1086 bytes
1086 bytes
Does 1.2Beta4's newAudioClip() not work?
The following code makes no sound.
package SoundTest;
import java.applet.*;
import java.net.*;
public class SoundTest
{
public SoundTest() throws MalformedURLException {
roundOverSound = Applet.newAudioClip(new
URL("file://c:/jbuilder2/myprojects/audio/drip.au"));
}
private void playSound() {
roundOverSound.play();
}
public static void main(String[] args) throws Exception {
SoundTest soundTest = new SoundTest();
soundTest.playSound();
}
private AudioClip roundOverSound;
}
Technical Details
Message-ID:
<362D48A0.2B7D160F@mediaone.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,b44e86213f11c7c8,start X-Google-Attributes: gidf74b3,public From: "John W. Scott" <johnwscott@mediaone.net> Subject: Applet.newAudioClip() not working? Date: 1998/10/20 Message-ID: <362D48A0.2B7D160F@mediaone.net> X-Deja-AN: 403406023 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language