Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

GetData, Create, OnAudioRead No Sound

$
0
0
Hi Guys,

Trying to learn more about the audio mechanics but I'm having trouble getting my head around it.

The code below is what I'm using and it's not right as I get no sound, there's obviously something I'm doing wrong but I'm not so proficient at coding.

Thanks for any help.

Code (CSharp):
  1. public AudioClip myClip;
  2.  
  3.     public int position = 0;
  4.     public int sampleRate = 0;
  5.     public float frequency = 440;
  6.  
  7.     void Start() {
  8.  
  9.         //Create an empty clip.
  10.         AudioClip myClip =...
GetData, Create, OnAudioRead No Sound

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>