Cascade.VolumeMeter.Update C# (CSharp) Method

Update() public static method

public static Update ( ) : void
return void
        public static void Update()
        {
            if (device == null)
            {
                MMDeviceEnumerator de = new MMDeviceEnumerator();
                device = de.GetDefaultAudioEndpoint(DataFlow.Render, Role.Multimedia);
            }
            if (ts == null)
            {
                ts = new ThreadStart(getVolume);
            }
            if (!threadRunning)
            {
                thread = new Thread(ts);
                threadRunning = true;
                thread.Start();
            }
        }
        static void getVolume()