Article View: aus.computers.java
Article #89Re: playing a .wav file
From: strongheart
Date: Wed, 14 Jan 2004 02:08
Date: Wed, 14 Jan 2004 02:08
27 lines
2053 bytes
2053 bytes
webstar wrote: > how do i play a .wav file? > > Thanks > > in an applet use AudioClip clip = getAudioClip((URL) url) ; or AudioClip clip = getAudioClip((URL) url, (String) name) ; and clip.play(); or clip.loop(); Also possible from an applet, but even possible from any java application is AudioClip clip = Applet.newAudioClip(URL url); // it's a static Method in Applet clip.play(); // There is also a JMF library that can handle many othere media types. hth. ~S~
Technical Details
Message-ID:
<ffWdnbj22byEOZndRVn-jw@comcast.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!216.196.98.140.MISMATCH!border1.nntp.ash.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!local1.nntp.sjc.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mailReferences:
<yjCDa.5685$7E.62828@news-server.bigpond.net.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,c4ec351a9511a758,start X-Google-Attributes: gid10d6db,public X-Google-ArrivalTime: 2004-01-13 18:06:19 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!216.196.98.140.MISMATCH!border1.nntp.ash.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!local1.nntp.sjc.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 13 Jan 2004 20:06:17 -0600 Date: Tue, 13 Jan 2004 21:08:47 -0500 From: strongheart <strongheart@aol.net> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: aus.computers.java Subject: Re: playing a .wav file References: <yjCDa.5685$7E.62828@news-server.bigpond.net.au> In-Reply-To: <yjCDa.5685$7E.62828@news-server.bigpond.net.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <ffWdnbj22byEOZndRVn-jw@comcast.com> Lines: 29 NNTP-Posting-Host: 68.45.149.140 X-Trace: sv3-TtjHQjUfnYJZWoWKpKDXgoB1O3hFtDSdR2JQnJg8mQEeCYUIzFXxoBhvhr0KKV/ZW9Sjo5uLIRYGMkM!tG1+TkwNQdACyqv4b4Wn2RJSBVeWOiFSkdFd2qWwGhPFNtfDATaWYiqdu4nblw== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1