Question about MediaTracker load status for audio clips

R

Rick D.

Hi all,

Is it possible to check if an audioclip loaded with getAudioClip (see
example 2) has completed the loading process, just like the
MediaTracker in example 1 checks if the images have been loaded. From
what i've seen so far, the mediatracker doesn't support audio (yet).
So i'm looking for another way to do this.

-snip-
// example 1
MediaTracker tracker = new MediaTracker(this);

img_lu = getImage (getCodeBase(), "image/lu.gif");
tracker.addImage(img_lu, 1);

try
{
tracker.waitForAll();
}
catch (Exception exception)
{
}

-snip-

// example 2
-snip-

snd_up = getAudioClip (getCodeBase(), "sound/up.au");


Any help would be greatly appreciated.

Best Regards,
Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
VetaMcRae
Top