title: Audio doesn't work for PlayOneShot but works for Play
body: <p>I'm trying to get audio working (a short clip) each time I click the mouse button. It works if I call Play directly. But I want to have the option to pass in audioclip thus using PlayOneShot but there is no audio. Its not a volume issue as I have tried to pass in the argument for volume with no difference. The audio clip has been added to the inspector.</p>
  
  <p>Please advice. Thank you. </p>
  
  <pre><code>public class Player : MonoBehaviour {
  
      private AudioSource audioSource;
      [SerializeField] private AudioClip impactSound;
  
      void Start () {
          audioSource = GetComponent&lt;AudioSource&gt;();
      }
  
      void Update () {
          if (Input.GetMouseButtonDown(0)) {
              //audioSource.Play(); // This works
              audioSource.PlayOneShot(impactSound, 0.8f); // not working
          }
      }
  }
  </code></pre>