Restrict android recording to device inbuilt MIC -


i have application requires me record audio device inbuilt mic , play head phone. app have developed application works fine head phone without mic when headphone mic plugged starts recording headphones mic(i dont want happen).

i have used audiorecord in code , below constructor

mrecorder = new audiorecord(mediarecorder.audiosource.mic,             msamplerate,             audioformat.channel_in_mono,             audioformat.encoding_pcm_16bit,             mbuffersize); 

how can it? appreciated.


Comments