The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

AudioClip Answer

Posted by Rakesh Kedia on June 18, 2001 at 8:34 PM

Hi,

We can get the instance of the AudioClip thru the applet class. Like
AudioClip clip = applet.getAudioClip(applet.getCodeBase(), "filename of the audio file");

I think this will solve ur problem.

Cheers,
Rakesh
> All of the code for creating an audioCLip has been done by instantiating a new AudioCLip()
> but, AudioCLip is an abstract class,
> so I don't uderstand how you can instantiate an abstract class,
> is this code right:
> AudioClip b = new AudioClip();

> Thank you






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us