Android USB audio recording not working in Samsung S
I am working on an application for recording audio through an external USB microphone. It works fine (records audio from USB microphone) with Motorola devices (Moto g running lollipop), but Samsung Tab S (lollipop) audio is only recorded from built-in microphone.
I am using audioRecord class for recording
int bufferSize = AudioRecord.getMinBufferSize(44100,
AudioFormat.CHANNEL_IN_STEREO, AudioFormat.ENCODING_PCM_16BIT);
byte[] mBuffer = new byte[bufferSize];
AudioRecord mRecorder = new AudioRecord(MediaRecorder.AudioSource.MIC,
44100, AudioFormat.CHANNEL_IN_STEREO,
AudioFormat.ENCODING_PCM_16BIT, bufferSize);
if (AudioRecord.STATE_INITIALIZED == mRecorder.getState()) {
mRecorder.startRecording();
}
Is there any way to switch audio source from built-in microphone to USB microphone so that it works in Samsung too.
Thank.
+3
source to share
No one has answered this question yet
Check out similar questions: