Esempio n. 1
0
        // Functions


        public void Play(IAudioMediaAsset asset)
        {
            m_Asset = asset;
            VuMeter ob_VuMeter = new VuMeter();

            ob_VuMeter.DisplayGraph();
            InitPlay(0, 0);
        }
Esempio n. 2
0
// catch the peak overload event triggered by VuMeter
        public void CatchPeakOverloadEvent(VuMeter ob_VuMeter, PeakOverload ob_PeakOverload)
        {
            if (ob_PeakOverload.Channel == 1)
            {
                txtOverloadLeft.Text = ob_VuMeter.m_MeanValueLeft.ToString();
            }

            if (ob_PeakOverload.Channel == 2)
            {
                txtOverloadRight.Text = ob_VuMeter.m_MeanValueRight.ToString();
            }

            BeepEnabled = true;
        }
Esempio n. 3
0
// function to catch the update event from VuMeter class to update graph cordinates
        public void CatchUpdateForms(VuMeter ob_VuMeterArg, UpdateForms Update)
        {
            ob_VuMeter = ob_VuMeterArg;

            // Update cordinates
            HighTop    = ob_VuMeter.Graph.HighTop;
            HighBottom = ob_VuMeter.Graph.HighBottom;

            NormalTop    = ob_VuMeter.Graph.NormalTop;
            NormalBottom = ob_VuMeter.Graph.NormalBottom;

            LowTop    = ob_VuMeter.Graph.LowTop;
            LowBottom = ob_VuMeter.Graph.LowBottom;

            LineWidth = ob_VuMeter.Graph.LineWidth;

            LeftGraphX  = ob_VuMeter.Graph.LeftGraphX;
            RightGraphX = ob_VuMeter.Graph.RightGraphX;

            BackGroundWidth  = ob_VuMeter.Graph.BackGroundWidth;
            BackGroundTop    = ob_VuMeter.Graph.BackGroundTop;
            BackGroundBottom = ob_VuMeter.Graph.BackGroundBottom;

            EraserLeft  = ob_VuMeter.Graph.EraserLeft;
            EraserRight = ob_VuMeter.Graph.EraserRight;

            PeakOverloadLightX = ob_VuMeter.Graph.PeakOverloadLightX;
            PeakOverloadLightY = ob_VuMeter.Graph.PeakOverloadLightY;


            AmplitudeLeft  = ob_VuMeter.m_MeanValueLeft;
            AmplitudeRight = ob_VuMeter.m_MeanValueRight;


            tmRefresh.Enabled     = true;
            tmRefreshText.Enabled = true;
        }
Esempio n. 4
0
 // Set VuMeter object
 private void SetVuMeterObject(VuMeter ob_VuMeterArg)
 {
     ob_VuMeter = ob_VuMeterArg;
     ob_UpdateVuMeter.UpdateVuMeterEvent += new DUpdateVuMeterEvent(ob_VuMeter.CatchUpdateVuMeterEvent);
 }
Esempio n. 5
0
 // Set VuMeter object
 public void SetVuMeterObject(VuMeter ob_VuMeterArg)
 {
     ob_VuMeter = ob_VuMeterArg;
     ob_UpdateVuMeter.UpdateVuMeterEvent += new DUpdateVuMeterEventHandller(ob_VuMeter.CatchUpdateVuMeterEvent);
 }