When I AudioClip.Create it does not properly load my .wav file. I have tried to access it in the assets folder or link to it in my resources folder. The audio file in the editor comes up blank 1 second long and 348KB in size.
AudioClip aclip = AudioClip.Create("Shoot", 44100, 2, 44100, true, true);
this.gameObject.AddComponent<AudioSource>();
asource = this.gameObject.GetComponent<AudioSource>();
asource.clip = aclip;
asource.Play();
Fix:
asource.clip = Resources.Load(“Sounds/Shoot”) as AudioClip;