<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get AudioData in SDK 2016 R2 in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/Get-AudioData-in-SDK-2016-R2/m-p/516188#M6796</link>
    <description>&lt;P&gt;I apologize for the delay in responding.  I was carefully researching your case today.  Unfortunately I do not have knowledge of this particular subject, and other people who have asked questions in past years about AudioData have not received answers.  So it is likely that an Intel support staff member will need to ask your question to the RealSense developer team.  I am sure a support agent will be able to reply to your message soon.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2018 15:58:49 GMT</pubDate>
    <dc:creator>MartyG</dc:creator>
    <dc:date>2018-02-28T15:58:49Z</dc:date>
    <item>
      <title>Get AudioData in SDK 2016 R2</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Get-AudioData-in-SDK-2016-R2/m-p/516187#M6795</link>
      <description>&lt;P&gt;&lt;A href="https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?doc_speech_audio_data.html"&gt;https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?doc_speech_audio_data.html&lt;/A&gt; Intel® RealSense™ SDK 2016 R2 Documentation  has the following example for obtaing audio data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;// audio is a PXCAudio instance&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;PXCAudio::AudioData data;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;audio-&amp;gt;AcquireAccess(PXCAudio::ACCESS_READ,&amp;amp;data);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;... // audio buffer is in data.dataPtr with number of samples in data.dataSize&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;audio-&amp;gt;ReleaseAccess(&amp;amp;data);&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; but for this you need to create a PXCAudio object, which is obtained from the PCXession using the CreateAudio method, which accepts the PXCAudio :: AudioInfo object. I used the following options, which are in another example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PXCAudio::AudioInfo info = {};&lt;/P&gt;&lt;P&gt;info.bufferSize = 8200;&lt;/P&gt;&lt;P&gt;info.format = PXCAudio::AUDIO_FORMAT_PCM;&lt;/P&gt;&lt;P&gt;info.sampleRate = 44100;&lt;/P&gt;&lt;P&gt;info.nchannels = 2;&lt;/P&gt;&lt;P&gt;but audio-&amp;gt;AcquireAccess(PXCAudio::ACCESS_READ, &amp;amp;data) return -2, that means PXC_STATUS_PARAM_UNSUPPORTED&lt;/P&gt;&lt;P&gt;could you tell me which parameters I should use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more question. At what point can I get the data? The documentation says&lt;/P&gt;&lt;P&gt;The AcquireAccess function locks the audio buffer for exclusive access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I understand correctly that I can not get data right away when I run the program? I have to periodically access the loop through audio-&amp;gt; AcquireAccess (PXCAudio :: ACCESS_READ, &amp;amp; date)&lt;/P&gt;&lt;P&gt;do something with the data and then do it&lt;/P&gt;&lt;P&gt;audio-&amp;gt; ReleaseAccess (&amp;amp; data);&lt;/P&gt;&lt;P&gt;that would remove the lock?&lt;/P&gt;&lt;P&gt;What will happen to the new audio data as long as I keep the lock in my application? they are lost?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 11:16:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Get-AudioData-in-SDK-2016-R2/m-p/516187#M6795</guid>
      <dc:creator>DMugu</dc:creator>
      <dc:date>2018-02-28T11:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get AudioData in SDK 2016 R2</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Get-AudioData-in-SDK-2016-R2/m-p/516188#M6796</link>
      <description>&lt;P&gt;I apologize for the delay in responding.  I was carefully researching your case today.  Unfortunately I do not have knowledge of this particular subject, and other people who have asked questions in past years about AudioData have not received answers.  So it is likely that an Intel support staff member will need to ask your question to the RealSense developer team.  I am sure a support agent will be able to reply to your message soon.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 15:58:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Get-AudioData-in-SDK-2016-R2/m-p/516188#M6796</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-02-28T15:58:49Z</dc:date>
    </item>
  </channel>
</rss>

