<?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 How to interpred Audiodata!? in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/How-to-interpred-Audiodata/m-p/1037862#M44765</link>
    <description>&lt;P&gt;I am trying to access the RawAudio-Data as described in example 113 in the Dokumentation.&lt;/P&gt;

&lt;P&gt;using this configuration:&lt;/P&gt;

&lt;P&gt;// Set the audio configuration.&lt;/P&gt;

&lt;P&gt;PXCAudioSourceService::AudioProfile pinfo={};&lt;/P&gt;

&lt;P&gt;pinfo.audioInfo.nchannels=2;&lt;/P&gt;

&lt;P&gt;pinfo.audioInfo.format=PXCAudio::AUDIO_FORMAT_PCM;&lt;/P&gt;

&lt;P&gt;pinfo.audioInfo.sampleRate=48000;&lt;/P&gt;

&lt;P&gt;and:&lt;/P&gt;

&lt;PRE style="font-family:Consolas;font-size:13;color:black;background:white;"&gt;&lt;SPAN style="color:#2b91af;"&gt;PXCAudio&lt;/SPAN&gt;::&lt;SPAN style="color:#2b91af;"&gt;AudioData&lt;/SPAN&gt;&amp;nbsp;data;
&lt;SPAN style="color:#2b91af;"&gt;pxcStatus&lt;/SPAN&gt;&amp;nbsp;status&amp;nbsp;=&amp;nbsp;sample-&amp;gt;AcquireAccess(&lt;SPAN style="color:#2b91af;"&gt;PXCAudio&lt;/SPAN&gt;::&lt;SPAN style="color:darkslategray;"&gt;ACCESS_READ&lt;/SPAN&gt;,&amp;nbsp;&amp;amp;data);&lt;/PRE&gt;

&lt;P&gt;gives me a pointer to a uchar buffer that should contain the audio data with 16 Bit per Sample.&lt;/P&gt;

&lt;P&gt;But it is not said in which format the sample is stored (short,ushort..., big endian, small endien) or in witch order the samples of the two channels are stored. No matter how I tried all I get from the device is Noise. (I even have the same problem with the AUDIO_FORMAT_IEEE_FLOAT format.)&lt;/P&gt;

&lt;P&gt;Does anybody know how the data is stored exactly?&lt;/P&gt;

&lt;P&gt;Can anybody provide a working example how to interpread the data in the correct way?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Apr 2015 10:38:05 GMT</pubDate>
    <dc:creator>Benjamin_R_</dc:creator>
    <dc:date>2015-04-23T10:38:05Z</dc:date>
    <item>
      <title>How to interpred Audiodata!?</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-interpred-Audiodata/m-p/1037862#M44765</link>
      <description>&lt;P&gt;I am trying to access the RawAudio-Data as described in example 113 in the Dokumentation.&lt;/P&gt;

&lt;P&gt;using this configuration:&lt;/P&gt;

&lt;P&gt;// Set the audio configuration.&lt;/P&gt;

&lt;P&gt;PXCAudioSourceService::AudioProfile pinfo={};&lt;/P&gt;

&lt;P&gt;pinfo.audioInfo.nchannels=2;&lt;/P&gt;

&lt;P&gt;pinfo.audioInfo.format=PXCAudio::AUDIO_FORMAT_PCM;&lt;/P&gt;

&lt;P&gt;pinfo.audioInfo.sampleRate=48000;&lt;/P&gt;

&lt;P&gt;and:&lt;/P&gt;

&lt;PRE style="font-family:Consolas;font-size:13;color:black;background:white;"&gt;&lt;SPAN style="color:#2b91af;"&gt;PXCAudio&lt;/SPAN&gt;::&lt;SPAN style="color:#2b91af;"&gt;AudioData&lt;/SPAN&gt;&amp;nbsp;data;
&lt;SPAN style="color:#2b91af;"&gt;pxcStatus&lt;/SPAN&gt;&amp;nbsp;status&amp;nbsp;=&amp;nbsp;sample-&amp;gt;AcquireAccess(&lt;SPAN style="color:#2b91af;"&gt;PXCAudio&lt;/SPAN&gt;::&lt;SPAN style="color:darkslategray;"&gt;ACCESS_READ&lt;/SPAN&gt;,&amp;nbsp;&amp;amp;data);&lt;/PRE&gt;

&lt;P&gt;gives me a pointer to a uchar buffer that should contain the audio data with 16 Bit per Sample.&lt;/P&gt;

&lt;P&gt;But it is not said in which format the sample is stored (short,ushort..., big endian, small endien) or in witch order the samples of the two channels are stored. No matter how I tried all I get from the device is Noise. (I even have the same problem with the AUDIO_FORMAT_IEEE_FLOAT format.)&lt;/P&gt;

&lt;P&gt;Does anybody know how the data is stored exactly?&lt;/P&gt;

&lt;P&gt;Can anybody provide a working example how to interpread the data in the correct way?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 10:38:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-interpred-Audiodata/m-p/1037862#M44765</guid>
      <dc:creator>Benjamin_R_</dc:creator>
      <dc:date>2015-04-23T10:38:05Z</dc:date>
    </item>
  </channel>
</rss>

