<?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 UMC::FileReader read .pcm file in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/UMC-FileReader-read-pcm-file/m-p/793792#M2622</link>
    <description>&lt;BR /&gt;Hello, &lt;BR /&gt;&lt;BR /&gt;I just wrote a quick test code bellow. It looked fine for the PCM. &lt;BR /&gt;Could you please check PCM file name:  Is it a unicode or ascii file name? and did you use theunicode or ascii to compile the UMC sample ? &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Chao&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;void ReadAudioPcm(vm_char* strFilename, Ipp8u *cPCMData, Ipp32u fileSize)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;UMC::Status status; &lt;/P&gt;&lt;P&gt;UMC::FileReader* pFileReader = new UMC::FileReader();&lt;/P&gt;&lt;P&gt;UMC::FileReaderParams FileParams;&lt;/P&gt;&lt;P&gt;FileParams.m_portion_size = 0;&lt;/P&gt;&lt;P&gt;vm_string_strcpy(FileParams.m_file_name, strFilename);&lt;/P&gt;&lt;P&gt;status = pFileReader-&amp;gt;Init(&amp;amp;FileParams);&lt;/P&gt;&lt;P&gt;if (status != UMC::UMC_OK) &lt;/P&gt;&lt;P&gt;exit (-1); //init failed&lt;/P&gt;&lt;P&gt;status = pFileReader-&amp;gt;MovePosition(0);&lt;/P&gt;&lt;P&gt;pFileReader-&amp;gt;ReadData(cPCMData, &amp;amp;fileSize);&lt;/P&gt;&lt;P&gt;pFileReader-&amp;gt;Close();&lt;/P&gt;&lt;P&gt;delete pFileReader;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;void main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;Ipp8u inut[1000000];&lt;/P&gt;&lt;P&gt;ReadAudioPcm("C:\\temp\\test.pcm", inut, 1000000);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2010 02:56:17 GMT</pubDate>
    <dc:creator>Chao_Y_Intel</dc:creator>
    <dc:date>2010-11-05T02:56:17Z</dc:date>
    <item>
      <title>UMC::FileReader read .pcm file</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/UMC-FileReader-read-pcm-file/m-p/793791#M2621</link>
      <description>&lt;P&gt;The following functionis to read data from a ".pcm" file into a buffer. It doesn't work, but for a .txt file it works normal.&lt;BR /&gt;Variable "cPCMData" in the function always keeps empty. What wrong with it. Wish someone help me solve it. Thanks!&lt;BR /&gt;&lt;BR /&gt;void ReadAudioPcm(vm_char* strFilename, Ipp8u *cPCMData, Ipp32u fileSize)&lt;BR /&gt;{&lt;BR /&gt; UMC::Status status; &lt;BR /&gt; UMC::FileReader* pFileReader = new UMC::FileReader();&lt;BR /&gt; UMC::FileReaderParams FileParams;&lt;BR /&gt; FileParams.m_portion_size = 0;&lt;BR /&gt; vm_string_strcpy(FileParams.m_file_name, strFilename);&lt;BR /&gt;&lt;BR /&gt; status = pFileReader-&amp;gt;Init(&amp;amp;FileParams);&lt;BR /&gt; if (status != UMC::UMC_OK) &lt;BR /&gt; exit (-1); //init failed&lt;BR /&gt; status = pFileReader-&amp;gt;MovePosition(0);&lt;BR /&gt; pFileReader-&amp;gt;ReadData(cPCMData, &amp;amp;fileSize);&lt;BR /&gt;&lt;BR /&gt; pFileReader-&amp;gt;Close();&lt;BR /&gt; delete pFileReader;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2010 11:08:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/UMC-FileReader-read-pcm-file/m-p/793791#M2621</guid>
      <dc:creator>visiontops</dc:creator>
      <dc:date>2010-11-04T11:08:21Z</dc:date>
    </item>
    <item>
      <title>UMC::FileReader read .pcm file</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/UMC-FileReader-read-pcm-file/m-p/793792#M2622</link>
      <description>&lt;BR /&gt;Hello, &lt;BR /&gt;&lt;BR /&gt;I just wrote a quick test code bellow. It looked fine for the PCM. &lt;BR /&gt;Could you please check PCM file name:  Is it a unicode or ascii file name? and did you use theunicode or ascii to compile the UMC sample ? &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Chao&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;void ReadAudioPcm(vm_char* strFilename, Ipp8u *cPCMData, Ipp32u fileSize)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;UMC::Status status; &lt;/P&gt;&lt;P&gt;UMC::FileReader* pFileReader = new UMC::FileReader();&lt;/P&gt;&lt;P&gt;UMC::FileReaderParams FileParams;&lt;/P&gt;&lt;P&gt;FileParams.m_portion_size = 0;&lt;/P&gt;&lt;P&gt;vm_string_strcpy(FileParams.m_file_name, strFilename);&lt;/P&gt;&lt;P&gt;status = pFileReader-&amp;gt;Init(&amp;amp;FileParams);&lt;/P&gt;&lt;P&gt;if (status != UMC::UMC_OK) &lt;/P&gt;&lt;P&gt;exit (-1); //init failed&lt;/P&gt;&lt;P&gt;status = pFileReader-&amp;gt;MovePosition(0);&lt;/P&gt;&lt;P&gt;pFileReader-&amp;gt;ReadData(cPCMData, &amp;amp;fileSize);&lt;/P&gt;&lt;P&gt;pFileReader-&amp;gt;Close();&lt;/P&gt;&lt;P&gt;delete pFileReader;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;void main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;Ipp8u inut[1000000];&lt;/P&gt;&lt;P&gt;ReadAudioPcm("C:\\temp\\test.pcm", inut, 1000000);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2010 02:56:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/UMC-FileReader-read-pcm-file/m-p/793792#M2622</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2010-11-05T02:56:17Z</dc:date>
    </item>
  </channel>
</rss>

