title: Unity Microphone not working
body: <p>I am trying to build a VR Lobby where users can talk to each other.
  I struggle with the basic code I found on the Unitywebsite.</p>
  
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class GetMicrophoneInput : MonoBehaviour
  {
    // Use this for initialization
    void Start()
    {
      var audio = GetComponent&lt;AudioSource&gt;();
      audio.clip = Microphone.Start("Built-in Microphone", true, 10, 44100);
      audio.loop = true;
      while (!(Microphone.GetPosition(null) &gt; 0))
      {
  
      }
  
      audio.Play();
    }
  
    // Update is called once per frame
    void Update()
    {
  
    }
  }
  </code></pre>
  
  <p>The first one is about <code>Microphone.Start()</code>. It says I cannot use <code>Start()</code>, because it is Protected.
  The second is about <code>Microphone.GetPosition()</code>. It says Microphone does not have a definition for GetPosition. </p>
  
  <p>Both used to work in previous versions of Unity.</p>
  
  <p>I am using Unity 5.6.2.</p>
  
  <p>Any ideas how I get this working again? Thanks.</p>