AudioRecord phantom AGC effect applied

Moderators: garrywadams, Aathif Mahir

Post Reply
no avatar
bryan
Posts: 1
Joined: Tue Mar 23, 2021 5:47 pm
Cash on hand: Locked

AudioRecord phantom AGC effect applied

Post by bryan » Tue Mar 23, 2021 6:09 pm

I'm running into an issue where the most basic AudioRecord is getting some sort of AutomaticGainControl applied to it.

Code: Select all

    mRecorder = new AudioRecord(MediaRecorder.AudioSource.UNPROCESSED, 16000, AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT, 1024);
Constant sound being recorded visualized.
Image

When I record a constant sound with this AudioRecord from any of the AudioSource options my recording level drops shortly after starting. With a constant sound being recorded this should not happen.

I've been going down the rabbit hole of a manufacturer config/xml setting applying an AudioEffect per AudioSource. https://source.android.com/devices/audio/audio-effects

Any help to solve this problem would be awesome.

Post Reply