// java를 사용하여 mp3 파일 목록을 연결하려고합니다.오디오 파일의 audioInputStream을 가져 오려고 시도합니다.
//javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input file
at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:1170)
at soundConcat.main(soundConcat.java:42)
가 //이이 작동하지만 단지 jl.jar에게 & mp3spi을 복사하는 방법을 모르겠어요 코드
String[] strFilename = {"a","b","c","d","e","f"};
for (int i = 0; i < 6; i++)
{
File soundFile = new File("./sounds/"+strFilename[i]+".mp3");
AudioInputStream audioInputStream = null;
try
{
//getting an error on the next line
audioInputStream = AudioSystem.getAudioInputStream(soundFile);
}
catch (Exception e)
{
e.printStackTrace();
}
//some more operations here
}
}
실제 파일 위치는 – Suranga
입니다. 내 컴퓨터에 로컬로 저장됩니다. –