Article View: borland.public.jbuilder.java.swing
Article #10598Re: play a sound on Application in 1.1 (urgent)
From: John Taber
Date: Mon, 30 Aug 1999 00:00
Date: Mon, 30 Aug 1999 00:00
29 lines
1445 bytes
1445 bytes
We have had trouble trying to do the same thing - we have used the following
code:
public class PlaySound extends JApplet {
........
AudioClip loopClip=null;
URL soundfile;
soundfile =new
URL("file:///d|/Tabermatics/Tab(SI2)/si200j1/Images/trippygaia1.mid");
loopClip = this.newAudioClip(soundfile);
loopClip.loop();
but the url parameter just won't work. Does this help - any ideas?
Khurram Shakir wrote:
> hello,
> I want to play a sound on my swing based 1.1 application. it is very easy in
> an applet, but I want to know how it can possible in application. I don't
> want to use Java media framework since I think it will too expansive (w.r.t.
> performance)
> please help me, thanks in advance
> ragards,
>
> --
> Khurram Shakir
> Java Developer
> Progressive Systems (Pvt.) Limited
> kshakir@prosys.com.pk
> ICQ#: 17135971
Technical Details
Message-ID:
<37CA7D20.BE9BD537@tabermatics.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7q3p39$oo420@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,686b4d46553c12f7 X-Google-Attributes: gid111d45,public From: John Taber <jttaber@tabermatics.com> Subject: Re: play a sound on Application in 1.1 (urgent) Date: 1999/08/30 Message-ID: <37CA7D20.BE9BD537@tabermatics.com> X-Deja-AN: 518981887 Content-Transfer-Encoding: 7bit References: <7q3p39$oo420@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing