public void startAudioStream() { IReadOnlyList <AudioBeam> audioBeamList = this.kinectSensor.AudioSource.AudioBeams; audioBeam = audioBeamList[0]; if (manualBeamAngle != -1000) { audioBeam.AudioBeamMode = AudioBeamMode.Manual; audioBeam.BeamAngle = manualBeamAngle; } audioStream = new KinectAudioStream(audioBeam.OpenInputStream()); }
public void stopAudioStream() { audioBeam = null; audioStream = null; }