• Post Reply Bookmark Topic Watch Topic
  • New Topic

Playing a .wav file  RSS feed

 
David McCombs
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to get a .wav file to play. What I have done so far throws an exception, but File is finding it and the sound file plays in a normal player so it isn't corrupted or anything like that.

The error I get is:



Here is the offending code:



I am using the wrong classes to play .wav files?
 
David McCombs
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I fixed the problem, seems that the wav file I was using was compressed and the classes I used can't handle that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!