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); } }
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); } }