Fix my Mic Input

I am making an audio game called Cyrstal Ball on which the game uses mic input. I have an issue where it picks up microphone feedback whilst it’s recording.How do I adjust this script so that the game will not pick up microphone whilst recording audio?

  private void StartRecording()
    {
        source.outputAudioMixerGroup = mixer;
        Debug.Log("Total found mic : " + Microphone.devices.Length);
        source.clip = Microphone.Start(null, true, (int)recordingTimeToWaitInSecs, 22050);
        while (!(Microphone.GetPosition(null) > 0)) { }
        Debug.Log("start playing... position is " + Microphone.GetPosition(null));
        source.Play();

i didnt have issues when tested recording in android last time…

wasnt using mixer though, and i used first device name (instead of null),
also called microphone.end after recording…