Click here to Skip to main content
15,922,007 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to record only my application audio I used AudioRecord and MediaRecorder but they record + Microphone sounds, i want to record only play by media player sound please help me i'm tried? please tell me ho wit is possible?

What I have tried:

i want to add recording function to the app and i use MediaRecorder class for that with this setting

recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);

but i it catch the microphone sound. i want to record the stream sound only.
Posted
Updated 28-Nov-16 2:32am
Comments
OriginalGriff 28-Nov-16 8:52am    
Why?
The only use I can think of is to copy music that is playing in a different application...
Philippe Mori 28-Nov-16 9:33am    
I think that it is not possible without installing a driver for that purpose... so the easiest solution is to turn off the microphone input while recording.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900