title: "AudioClip " does not take a constructor that takes 0 arguments
body: <p>on this line, which is line 10 it says "AudioClip" does not take a constructor that takes 0 arguments.  How to fix it? I know that AudioClip is a default class in Unity. What parameters shall I pass there or how to solve this issue?</p>
  
  <pre><code>AudioClip _clipRecord = new AudioClip()
  int _sampleWindow = 128;
  </code></pre>
  
  <p>How to solve it?</p>
  
  <pre><code>public class MicInput : MonoBehaviour {
  
      public static float MicLoudness;
  
      private string _device;
  
      //mic initialization
      void InitMic(){
          if(_device == null) _device = Microphone.devices[0];
          _clipRecord = Microphone.Start(_device, true, 999, 44100);
      }
  
      void StopMicrophone()
      {
          Microphone.End(_device);
      }
  
  
      AudioClip _clipRecord = new AudioClip();
      int _sampleWindow = 128;
  
      //get data from microphone into audioclip
      float  LevelMax()
      {
          float levelMax = 0;
          float[] waveData = new float[_sampleWindow];
          int micPosition = Microphone.GetPosition(null)-(_sampleWindow+1); // null means the first microphone
          if (micPosition &lt; 0) return 0;
          _clipRecord.GetData(waveData, micPosition);
          // Getting a peak on the last 128 samples
          for (int i = 0; i &lt; _sampleWindow; i++) {
              float wavePeak = waveData[i] * waveData[i];
              if (levelMax &lt; wavePeak) {
                  levelMax = wavePeak;
              }
          }
          return levelMax;
      }
  
  
  
      void Update()
      {
          // levelMax equals to the highest normalized value power 2, a small number because &lt; 1
          // pass the value to a static var so we can access it from anywhere
          MicLoudness = LevelMax ();
      }
  
      bool _isInitialized;
      // start mic when scene starts
      void OnEnable()
      {
          InitMic();
          _isInitialized=true;
      }
  
      //stop mic when loading a new level or quit application
      void OnDisable()
      {
          StopMicrophone();
      }
  
      void OnDestroy()
      {
          StopMicrophone();
      }
  
  
      // make sure the mic gets started &amp; stopped when application gets focused
      void OnApplicationFocus(bool focus) {
          if (focus)
          {
              //Debug.Log("Focus");
  
              if(!_isInitialized){
                  //Debug.Log("Init Mic");
                  InitMic();
                  _isInitialized=true;
              }
          }    
          if (!focus)
          {
              //Debug.Log("Pause");
              StopMicrophone();
              //Debug.Log("Stop Mic");
              _isInitialized=false;
  
          }
      }
  }
  </code></pre>
  
  <p>on this line, which is line 10 it says "AudioClip " does not take a constructor that takes 0 arguments.  How to fix it?
  ----AudioClip _clipRecord = new AudioClip()----
         ---int _sampleWindow = 128;----</p>
  
  <p>How to solve it?</p>