Play .AU file problem
Posted on 1999-07-21
I have a problem when playing a particular au file. The problem looks like this: I have a wav file to be used in my applet, and so I used a software tool(GoldWave) to convert it into .au format. However, after this, when I play it in mouseDown(...) event handler, the sound clip sounds off just occassionally, that is, sometimes it sounds off, sometimes it does not. While most of other files I played using same method does not have this problem. Do you know what might cause this happen?
The way I play all my .au files is quite common, that is:
mysound = getAudioClip(getCodeBase(),"mysound.au");
I can't find any problem with my coding, and then I suspect this particular file(which is only 327 bites after converted to .au)is so a compatible .au format with JDK1.1, could this be the cause? If so, do you know any program which can convert normal wav file to .au file that can be played within java applet, no matter the size of the file?
Thanks for any input,