I am trying to work out an example of recording audio, with the data storage being handled by the app, not MediaRecorder
. Use cases include storing the recordin
I would guess this is related to my answer to your other question. Anyone Have MediaPlayer Working with ParcelFileDescriptor and createPipe()?
Probably when the MediaRecorder will seek to write the Header information, the pipe is closed.
If you use:
recorder.setOutputFormat(MediaRecorder.OutputFormat.RAW_AMR);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
The record works fine, because it will not have a header information, only raw audio.