Example #1
0
 //Default Constructor
 public MainWindow()
 {
     InitializeComponent();
     //player = new SineWavePlayer();
     freqBox.Text     = player.Frequency.ToString();
     freqSlider.Value = player.Frequency;
     volBox.Text      = (player.Amplitude * 100).ToString();
     //Initialize the Kinect Sensor
     helper           = new KinectHelper(true, false, true);
     skelImage.Source = helper.skeletonBitmap;
     rgbImage.Source  = helper.colorBitmap;
     helper.ToggleSeatedMode(true);
     helper.SkeletonDataChanged += new KinectHelper.SkeletonDataChangedEvent(SkeletonDataChange);
 }
 //Default Constructor
 public MainWindow()
 {
     InitializeComponent();
     //player = new SineWavePlayer();
     freqBox.Text = player.Frequency.ToString();
     freqSlider.Value = player.Frequency;
     volBox.Text = (player.Amplitude * 100).ToString();
     //Initialize the Kinect Sensor
     helper = new KinectHelper(true, false, true);
     skelImage.Source = helper.skeletonBitmap;
     rgbImage.Source = helper.colorBitmap;
     helper.ToggleSeatedMode(true);
     helper.SkeletonDataChanged += new KinectHelper.SkeletonDataChangedEvent(SkeletonDataChange);
 }