none
Access to raw audio stream in audio explorer sample in kinect developer tool kit. RRS feed

  • Question

  • hi all,

    I have gone through the audio sample applications for kinect. I am not able to trace the raw audio buffer or the buffer containing the captured signal in Audiod2d explorer sample.

    Can anyone help me in this!

    Thank you.


    seenarvce

    Wednesday, August 28, 2013 6:48 AM

All replies

  • Are you referring to the Audio Basics - D2D sample? Are you familiar with WASAPI?

    It might be easier to understand if you look at these to get a bearing on understanding the WASAPI API's for capturing audio:

    Audio Stream
    http://msdn.microsoft.com/en-us/library/jj131026.aspx

    Capturing Audio Data in C++
    http://msdn.microsoft.com/en-us/library/jj883681.aspx

    Capturing a Stream
    http://msdn.microsoft.com/en-us/library/windows/desktop/dd370800(v=vs.85).aspx


    Carmine Sirignano - MSFT

    Wednesday, August 28, 2013 4:46 PM
  • Carmine Sirignano,

    Thanks for the replies.

    1) I do have some understanding about WASAPI and capturing audio using the sensor.

    I have understood this following the Audiocaptureraw sample application.

    2) But i cant find ,in Audio Basics - D2D sample and Audio explorer - D2D sample ( c++) , usage of WASAPI , creating capturer and getting the raw stream etc. Basically to be simple , I am not able to tract the raw audio buffer. I am able to trac only the processed buffer after the processOutput function call.

    I need help in this.

    Apart from this i would also like one thing to be clarified.

    3) what is the difference between audio capture raw sample and Audio Basics - D2D sample , with respect to getting raw audio data. As far as i could understand Audio Basics - D2D sample uses DMO methods and the other uses WASAPI methods..

    Waiting for your precious inputs.

    Seenarvce


    seenarvce


    • Edited by seenarvce Wednesday, August 28, 2013 5:08 PM
    Wednesday, August 28, 2013 5:08 PM
  • Hi,

    To add, My worry is how to tap the unprocessed data in audio basics d2d sample or audio explorer d2d sample.

    Regards,

    Seenarvce


    seenarvce

    Wednesday, August 28, 2013 6:02 PM
  • The Process Buffer method of the sample is the raw audio. This is the data that is acquired from the WASAPI API's. The DMO is the higher level api that abstracts the lower level of and management and gives you the raw data. 

    If you need direct control of the capture, you have to use WASAPI/Core Audio api's. 


    Carmine Sirignano - MSFT

    Thursday, August 29, 2013 6:12 PM
  • Thanks again!

    Now i understand about the abstraction.

    1)But is there any method by which we can ask for the raw adata from the DMO?

    2) If not, Can i use WASapi to capture raw audio alone along with the existing codebase of audiobasicsd2d sample?

    Please suggest me!


    seenarvce

    Friday, August 30, 2013 4:02 AM