How to play audio in FrameArrived? RRS feed

  • Question

  • I want to know Kinect Studio v2.0 how to play sound in C#?

    like playback the sound in REAL-TIME , i.e. as soon as I start AudioBeamFrameReader , I want the audio to play.

    AudioBeamFrameReader reader = audioSource.OpenReader();

    this.reader.FrameArrived += this.Reader_FrameArrived;
    private void Reader_FrameArrived(object sender, AudioBeamFrameArrivedEventArgs e)
                AudioBeamFrameReference frameReference = e.FrameReference;
                AudioBeamFrameList frameList = frameReference.AcquireBeamFrames();
                if (frameList != null)
                    using (frameList)
                        IReadOnlyList<AudioBeamSubFrame> subFrameList = frameList[0].SubFrames;
                        foreach (AudioBeamSubFrame subFrame in subFrameList)
                              subFrame.Play(); ????←How to play

    Why not offer Kinect Studio v2.0 source code?
    I can refer to the inside of the practice.

    • Edited by Bone_jacky Monday, April 20, 2015 10:57 AM
    Monday, April 20, 2015 9:13 AM