[1832] in java-interest

home help back first fref pref prev next nref lref last post

Re: JDK AudioClip completion

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Mon Sep 18 17:05:21 1995

Date: Mon, 18 Sep 1995 11:17:39 -0800 (PDT)
From: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
Reply-To: Arthur van Hoff <Arthur.Vanhoff@Eng.Sun.COM>
To: bert hobbs <bhobbs@sfhill.sfhill.org>
Cc: java-interest@java.Eng.Sun.COM


 
Hi Bert,

> I can certainly understand that defining and agreeing on an API
> to support all the above features is a difficult task. Being able
> to tell when an AudioClip finishes playing seems pretty basic and
> I am surprised it could not be included in this cut of AudioClip.
> 
> A couple related AudioClip questions.  When play is called, can there
> be a delay while audio data is being loaded?  

Yes. The data is cached though.

> Can play return before the audio actually starts?

It returns immediatly. You can call stop() to stop the audio.

> What happens when play is called while
> an AudioClip is already playing?

It restarts. If you want to simultaneous clips playing, then you need
to create two AudioClip objects.

Have fun,

	Arthur van Hoff
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post