Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception while capturing audio in Java Sound API  RSS feed

 
Chatura Li.
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i've written a app that records sound using the Java Sound API.
i'm recording at 8000hz i get the following exception.

java.lang.IllegalArgumentException: No line matching interface TargetDataLine supporting format PCM_SIGNED, 8000.0 Hz, 16 bit, mono, big-endian, audio data is supported.

what am i doing wrong here? cuz i really need to record the sound in the above format.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!