added restartAudioSession, that can be called after app resumes. Changed mRecordFormat.mFormatFlags = 1. Added debug statements allover.