Article View: borland.public.jbuilder.java.language
Article #17714Re: sounds in applications Java
From: Dillan Fernando
Date: Sun, 04 Oct 1998 00:00
Date: Sun, 04 Oct 1998 00:00
35 lines
1309 bytes
1309 bytes
Hi Jean Pierre Pagani!
There is a package sun.audio, which is not documented in JBuilder. I don't
remember exactly what you have to do, but it looks something like this,
import sun.audio.*;
...
..
FileInputStream fs = new FileInputStream("music.au");
AudioPlayer ap = AudioPlayer.audioplayer ; // Or something similar if this
doesent work try
//
AudioPlayer.audio; Note this is a variable
ap.play(fs);
Hope this help
Regards
Dillan Fernando
Senior Analyst
Palmware (pvt) Ltd.
Jean Pierre Pagani wrote in message <6v7jr9$b533@forums.borland.com>...
>how to use sounds "*.au" in java applications
>in applets i use play(url,string);
>
>--
>jean pierre pagani
>
>j2p@wanadoo.fr
>j2p@csi.com
>http://wwwperso.hol.fr/~jpagani/
>
>
Technical Details
Message-ID:
<6v85qf$csr3@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6v7jr9$b533@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,eb401eb94935a7ef X-Google-Attributes: gidf74b3,public From: "Dillan Fernando" <dillan@geocities.com> Subject: Re: sounds in applications Java Date: 1998/10/04 Message-ID: <6v85qf$csr3@forums.borland.com> X-Deja-AN: 397635111 References: <6v7jr9$b533@forums.borland.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Palmware Newsgroups: borland.public.jbuilder.java.language