• Post Reply Bookmark Topic Watch Topic
  • New Topic

issue capturing sound  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 in the following format:

//Create New Audio Format
AudioFormat newAudioFormat= new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 44100.0F, 16, 2, 4, 44100.0F, false);


This records data in "PCM_SIGNED, 44100.0 Hz, 16 bit, stereo, little-endian, audio data"

but wat i actually wanna do is record sound in "mono" then i would put no. channels as 1 in the above code (currently its put to 2 indicate stereo)

how can i do this? because when i try to record in mono i get error saying "line not supported".
i've googled but havent come across any solution.

Thanks

[ March 13, 2006: Message edited by: Chatura Li. ]
[ March 13, 2006: Message edited by: Chatura Li. ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!