Hi All,

I know sound is very buggy and I've read through the previous posts on sound
but I've tryied everything else so I have nothing left except to try and ask
here.

The question is in relation to sound durations, in the sound class there is
a method getDuration() which should return the sounds duration in
milliseconds or -1 if this length is unknown, probably due to the sound
being streaming or not cached.    After experimenting im gussing this method
looks like

public void getDuration()
{
    return -1;
}

but can someone confirm or deny this?   The easiest way to test is to add
the following lines to the "SimpleSoundsBehavior.java" file in the "sounds"
demo in the java3d folder that is under the demos folder in your jdk
directory.

sample1.setCacheEnable(true);

System.out.println("sample1 cache = " + sample1.getCacheEnable());
System.out.println("sound 1 length = " + sound1.getDuration());

I really need the sound duration and was wondering if no one had managed to
make it work does anyone instead know of another java sound library that I
could use in conjunction with the java3d sound api to find a sounds length.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to