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
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