当执行以下方法时:
private void beep_player_1() {
try {
//clip_Player_2.close();
clip_Player_1 = AudioSystem.getClip();
ais = AudioSystem.getAudioInputStream(new File(Constants.Player1_Default_Tone)); // PATH FOR THE .WAV FILE
clip_Player_1.open(ais);
clip_Player_1.loop(0); // PLAY ONCE
}catch(Exception exc) {
System.out.println(exc);
}
}
LineUnavailableException
被抛出。这可能是什么原因?
javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 44100.0 Hz, 24 bit, stereo, 6 bytes/frame, little-endian not supported.