I have a Java program that auto dials phone numbers, it can generate sounds to mimic phone keypads, works fine for normal calls, but I encountered a problem when it comes to calling card, it requires me to enter a card number, the sounds generated by my program were not accepted by the other end, it always said the card number is incorrect, so I did some research and found a site that would generate the entire card number sound sequence for me, and I saved it, but the thing is when I used the following Java method to play the *.wav sound file, it's still not accepted, and yet if I play the same file back with Windows Media Player, the other end would accept it as a valid card number sound, why ? Does that mean Java Applet play sound file has a different effect than Windows Media Player ?
void playAudioFile(String File_Name)
{
try { Applet.newAudioClip(new URL("file:/"+File_Name)).play(); }
catch (Exception e) { e.printStackTrace(); }
}
If so, how can I, in my Java program, call Windows Media Player to play the sound ?