コード例 #1
0
ファイル: KinectV1Core.cs プロジェクト: vancegroup/KVR
 public void StartKinectAudio()
 {
     if (isGUI)
     {
         ActuallyStartAudio();
     }
     else
     {
         //Launch the audio on a seperate thread if it is in console mode (otherwise the events never get thrown successfully)
         startAudioDelegate audioDelegate = ActuallyStartAudio;
         IAsyncResult       result        = audioDelegate.BeginInvoke(null, null);
         audioDelegate.EndInvoke(result);
     }
 }
コード例 #2
0
 public void StartKinectAudio()
 {
     if (isGUI)
     {
         ActuallyStartAudio();
     }
     else
     {
         //Launch the audio on a seperate thread if it is in console mode
         startAudioDelegate audioDelegate = ActuallyStartAudio;
         IAsyncResult       result        = audioDelegate.BeginInvoke(null, null);
         audioDelegate.EndInvoke(result);
     }
 }