We should call AudioRecord.getState() right after using AudioRecord constructor, and correctly process its result, to ensure correct audio system initialization, as per its (constructor) documentation.
iOS
Ensure that constant for AUDIO_SOURCE_MIC is exported, as we want to use it in the host code.
Android
iOS
AUDIO_SOURCE_MIC
is exported, as we want to use it in the host code.