Example #1
0
 public static void StopRecording()
 {
     if (!IsRecording)
     {
         Debug.LogError("NatMic Error: Cannot stop recording because NatMic is not recording");
         return;
     }
     if (audioUtility)
     {
         audioUtility.Dispose();
     }
     if (audioMixer != null)
     {
         audioMixer.Dispose();
     }
     audioUtility = null;
     audioMixer   = null;
     Implementation.StopRecording();
 }