public void StartSound()
        {
            stopUpdate = false;
            //soundon = true;
            ALsetup.SLplayTone(300);
            Thread updateThread = new Thread(new ThreadStart(KeepPlaying));

            updateThread.IsBackground = true;
            updateThread.Start();
        }
        private void StartSound()
        {
            float pitch;

            ALsetup.SLplayTone();
            while (ALsetup.SLtoneupdate())
            {
                pitch = (float)Foot.Frontfoot.CurrentMarker.xCoordinate / 100;
                ALsetup.SLchangepitch(pitch);
            }



            //update = new Thread(new ThreadStart(KeepPlaying));
            //monitor = new Thread(new ThreadStart(Monitor));
        }