Exemplo n.º 1
0
 ///
 /// <summary> * Get a sonagram analyser gauge for this audio analyser.
 /// *  </summary>
 /// * <param name="surface"> The surface in which the gauge will be displayed. </param>
 /// * <returns>  A gauge which will display the audio waveform
 ///	 *						as a sonogram. </returns>
 ///
 public virtual SonagramGauge getSonagramGauge()
 {
     if (sonagramGauge != null)
     {
         throw new Exception("Already have a SonagramGauge" + " for this AudioAnalyser");
     }
     sonagramGauge = new SonagramGauge(sampleRate, inputBlockSize);
     return(sonagramGauge);
 }
Exemplo n.º 2
0
 ///
 /// <summary> * Reset all Gauges before choosing new ones. </summary>
 ///
 public virtual void resetGauge()
 {
     lock (this)
     {
         waveformGauge=null;
         spectrumGauge=null;
         sonagramGauge=null;
         powerGauge=null;
     }
 }
Exemplo n.º 3
0
 ///
 /// <summary> * Get a sonagram analyser gauge for this audio analyser.
 /// *  </summary>
 /// * <param name="surface"> The surface in which the gauge will be displayed. </param>
 /// * <returns>  A gauge which will display the audio waveform
 ///	 *						as a sonogram. </returns>
 ///
 public virtual SonagramGauge getSonagramGauge()
 {
     if (sonagramGauge != null)
     {
         throw new Exception("Already have a SonagramGauge" + " for this AudioAnalyser");
     }
     sonagramGauge = new SonagramGauge(sampleRate, inputBlockSize);
     return sonagramGauge;
 }