Article View: borland.public.jbuilder.java.language
Article #15910Help with AudioClip
From: Jennifer Latham
Date: Wed, 14 Apr 1999 00:00
Date: Wed, 14 Apr 1999 00:00
24 lines
1354 bytes
1354 bytes
I am developing an applet in JBuilder and I am trying to play .au sound files on an event. I have been unsuccessful thus far, I either receive NullPointerExceptions or I just don't hear any sound. I have tried declaring an audio file with private AudioClip myClip declaring the file with (in my init method): myClip = getAudioClip(getCodeBase(), "mypathhere"); and on my event (buttonclick in this case) myClip.play(); and get my Null Pointer Exceptions If I simply say play(getCodeBase(), "mypathhere"); I just don't get any sound! Any ideas? Help would be greatly appreciated. If someone who has done this before could show me a quick little example that works (unlike mine) I would be very thankful! Thanks! Jen
Technical Details
Message-ID:
<924131443.728.59@news.remarQ.com>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,d29c95fe69191cd2,start X-Google-Attributes: gidf74b3,public From: "Jennifer Latham" <jlatham@wnol.net> Subject: Help with AudioClip Date: 1999/04/14 Message-ID: <924131443.728.59@news.remarQ.com> X-Deja-AN: 466489188 X-Mimeole: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: newsabuse@remarQ.com X-Trace: 924131443.728.59 ZZYOAESJW18949F8AC usenet1.supernews.com Organization: Posted via RemarQ Communities, Inc. NNTP-Posting-Date: Wed, 14 Apr 1999 23:10:43 GMT Newsgroups: borland.public.jbuilder.java.language