getAudioSource

fun getAudioSource(context: Context): Int

Call this method to get the noise reduction status. Noise reduction enabled means : use MediaRecorder.AudioSource.MIC as audio source Noise reduction disabled means : use MediaRecorder.AudioSource.VOICE_COMMUNICATION as audio source

Return

the audio source value, can be MediaRecorder.AudioSource.MIC or MediaRecorder.AudioSource.VOICE_COMMUNICATION

Parameters

context

the application context