You will have to directly handle all PCM audio data flowing into any
AudioTrack objects you are using for ouput, mix them in real time, and
output them where they can be played back again or later processed.
You will not be able to use MediaPlayer, if that's what you were
hoping.  You will have to provide and handle the raw PCM.

Doug

On Sep 20, 8:48 am, Raj <bande.rajki...@gmail.com> wrote:
> Hello all,
> I googled a lot for this and went through all possible forums but I couldn't
> find any solution so I thought of giving it a last try here. Coming back to
> the point-
>
> In my app, I am playing some sounds on click of buttons. What I want to do
> is whenever the users clicks on those buttons in any tempo it should play
> (like a piano) and also that sound stream must get stored somewhere so as to
> record the sounds that were played. The only solution I found till now is
> using
>
> MediaRecorder.AudioSource.MIC
>
> But, this records the stream with the surroundings sounds also (because it
> is recording the sound that comes from speakerphone. Won't work in case of
> headphones.)
> So, please give me a solution for this. Thank you in advance.
>
> __
>
> Regards,
> Rajkiran Bande.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to