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

Support amplitude callback to StreamAudioRecorder #25

Open jaychang0917 opened 7 years ago

jaychang0917 commented 7 years ago

It would be better if the StreamAudioRecorder supports amplitude callback.

Piasy commented 7 years ago

I think there is no way to get amplitude when using AudioRecord, it's an API of MediaRecorder.

jaychang0917 commented 7 years ago

The method presented in here works, but it only shows how to calculate amplitude for PCM16.

Piasy commented 7 years ago

Well, that's cool, but I'm too busy these days, so your pr is welcome!