Can you just do the following?
byte []buf = new byte[1024];
int read = 0;
ar = new AudioRecord();
at = new AudioTrack();
do {
//Read from mic
read = ar.read(buf);
//Send to speaker
at.write(buf,0,read);
} while(...);
-Moto
On Oct 22, 5:00 am, Vishal vishal.andr...@gmail.com wrote:
Thanks
Thanks Roman,
But my scenario is quiet different from what is discussed in that
blog. I am trying to capture audio from mic directly in pcm format
using AudioRecord interface and also at the same time trying to play
the pcm samples (from different source) to the speaker using the
AudioTrack
Thanks Roman,
But my scenario is quiet different from what is discussed in that
blog. I am trying to capture audio from mic directly in pcm format
using AudioRecord interface and also at the same time trying to play
the pcm samples (from different source) to the speaker using the
AudioTrack
Thanks Roman,
But my scenario is quiet different from what is discussed in that
blog. I am trying to capture audio from mic directly in pcm format
using AudioRecord interface and also at the same time trying to play
the pcm samples (from different source) to the speaker using the
AudioTrack
I am assuming when you record your audio stream, the file is blocked
from playback.
Check out the following blog which talks about video streaming and
deals with a similar problem
http://blog.pocketjourney.com/2008/04/04/tutorial-custom-media-streaming-for-androids-mediaplayer/
--
Roman
5 matches
Mail list logo