/// <summary>
 /// Initializes the Recorder component to be able to transmit audio.
 /// </summary>
 /// <param name="rec">The Recorder to be initialized.</param>
 public void InitRecorder(Recorder rec)
 {
     if (rec == null)
     {
         if (this.Logger.IsErrorEnabled)
         {
             this.Logger.LogError("rec is null.");
         }
         return;
     }
     rec.Init(this);
 }