Piasy / RxAndroidAudio

Maybe the most robust Android Audio encapsulation library, with partial Rx support.
http://blog.piasy.com/2016/02/24/Robust-Android-Audio-encapsulation/
MIT License
1.57k stars 235 forks source link

StreamAudioRecord recording format #32

Closed WooYu closed 5 years ago

WooYu commented 7 years ago

mOutputFile = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + System.nanoTime() + ".stream.m4a");

Using StreamAudioRecord audio recording, the format is no practical significance.Because there is no converting PCM flow into the corresponding code format.

Piasy commented 7 years ago

Sorry that I don't understand what do you mean 😂

WooYu commented 7 years ago

Use StreamAudioRecord recording of data is the flow of PCM.Though the output path here is: m4a format, but the file is saved in PCM data streams

WooYu commented 7 years ago

There is another problem,AndroidTrack play no Mediaplay's sound loudly

Piasy commented 7 years ago

You are right, you can use any file name for the saved file, but the content is in PCM format.

WooYu commented 7 years ago

@Piasy Why AndroidTrack play no Mediaplay's sound loudly?

Piasy commented 7 years ago

@WooYu Sorry for the late response, I haven't dig into that, maybe you can try to find out the reason :)