This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems with loading wav-file  RSS feed

Sven Habermann
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote an applet, that should load an wav-file. The wav-file and the class-files of the applet are at the same directory of the server, but the applet cannot load it. I always get the FileNotFoundException, when I want to get out the audioformat of the file:
File file = new File("music.wav");
AudioFormat af = AudioSystem.getAudioInputStream(file).getFormat();
I don't know, why it doesn't work.
Please help me!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!