Example #1
0
 public void NotifyUpdateVuMeter(object sender, UpdateVuMeterFromRecorder Update)
 {
     if (UpdateVuMeterEvent != null)
     {
         UpdateVuMeterEvent(sender, Update);
     }
 }
Example #2
0
        // handles update event from audio recorder
        public void CatchUpdateVuMeterEvent(object sender, events.AudioRecorderEvents.UpdateVuMeterFromRecorder UpdateVuMeter)
        {
            AudioRecorder Recorder = sender as AudioRecorder;

            ob_AudioRecorder      = Recorder;
            m_FrameSize           = Recorder.m_FrameSize;
            m_Channels            = Recorder.m_Channels;
            m_UpdateVMArrayLength = Recorder.m_UpdateVMArrayLength;
            m_arUpdatedVM         = new int  [m_UpdateVMArrayLength];
            Array.Copy(Recorder.arUpdateVM, m_arUpdatedVM, m_UpdateVMArrayLength);
            Thread UpdateVMForm = new Thread(new ThreadStart(AnimationComputation));

            UpdateVMForm.Start();
        }