chenxiaolong / BCR

A Basic Call Recorder for rooted Android devices
GNU General Public License v3.0
1.5k stars 98 forks source link

Call recording is not functioning properly, after switching from mono to stereo. #500

Closed sreejith-1210 closed 4 months ago

sreejith-1210 commented 4 months ago

Call recording is functioning on only one channel after switching to CHANNEL_IN_STEREO. It works for 90% of the cases, but in 10% of instances, it fails. After downloading recording, only one side of the sound can be heard.

chenxiaolong commented 4 months ago

If BCR produced an audio file for the failing instances, then this is very likely a bug in the audio drivers. BCR encodes every audio sample it receives from the AudioRecord without modification. I'm actually quite surprised stereo recording works at all for you--I haven't seen a single device that supports that.

I unfortunately have no suggestions for how to troubleshoot the audio driver. It's not open source for many devices.

sreejith-1210 commented 4 months ago

private static final int CHANNEL_CONFIG = android.media.AudioFormat.CHANNEL_IN_STEREO

The configuration I modified is functioning well on Samsung A04 and A05; however, it is encountering failures in approximately 10% of cases.