<?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 AAC - audio decoding and audio rendering in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/AAC-audio-decoding-and-audio-rendering/m-p/826462#M5221</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have tried to do AAC - audio streaming from the camera using the IPP audio-video codecs.&lt;BR /&gt;The following are the steps i have done.&lt;BR /&gt;1)&lt;BR /&gt;The initialization was done only once.&lt;/P&gt;&lt;P&gt;m_pAudioparams-&amp;gt;m_info_in.sample_frequency = 8000;&lt;/P&gt;&lt;P&gt;m_pAudioparams-&amp;gt;m_info_in.bitPerSample = 16;&lt;/P&gt;&lt;P&gt;m_pAudioparams-&amp;gt;m_info_in.channels = 2;&lt;/P&gt;&lt;P&gt;m_pAudioparams-&amp;gt;m_info_in.bitrate = 32000;&lt;/P&gt;&lt;P&gt;m_pAudioparams-&amp;gt;m_info_in.stream_type = UMC::AAC_MPEG_STREAM;&lt;/P&gt;&lt;P&gt;m_pAudioparams-&amp;gt;m_pData = rtspClient-&amp;gt;m_pAudMediaIn;&lt;BR /&gt;&lt;BR /&gt;// where m_pAudioparams is UMC::AudioCodecParams&lt;/P&gt;&lt;P&gt;if (UMC::UMC_OK = (m_pAudioDecoder-&amp;gt;Init(m_pAudioparams)))&lt;BR /&gt;{&lt;BR /&gt; //initialization Sucess&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;2) Then&lt;/P&gt;&lt;P&gt;m_pAudMediaIn-&amp;gt;SetBufferPointer((Ipp8u *)szData,len); &lt;BR /&gt;&lt;BR /&gt;// m_pAudMediaIn is UMC::MediaData object ,szData is raw audio buffer from the camera i get everytime as it streams, len is length of the audio buffer.&lt;/P&gt;&lt;P&gt;m_pAudMediaIn-&amp;gt;SetDataSize(len);&lt;BR /&gt;&lt;BR /&gt;is set eveytime.&lt;BR /&gt;&lt;BR /&gt;3) &lt;BR /&gt;&lt;BR /&gt;UMC::Status stRes = m_pAudioDecoder-&amp;gt;GetFrame(m_pAudMediaIn,m_pAudMediaOut);&lt;BR /&gt;&lt;BR /&gt;if(UMC::UMC_OK == stRes)&lt;BR /&gt;{&lt;BR /&gt;&lt;/P&gt;&lt;P&gt; if(!m_bFirst)&lt;/P&gt;&lt;P&gt; {&lt;BR /&gt; // Audio Renderer initialization is done only once&lt;/P&gt;&lt;P&gt;m_pAudioDecoder-&amp;gt;GetInfo(m_pAudioparams);&lt;/P&gt;&lt;P&gt; m_bFirst =TRUE;&lt;/P&gt;&lt;P&gt;m_pAudioRenderParams-&amp;gt;info = m_pAudioparams-&amp;gt;m_info_out;&lt;BR /&gt;// At this point I got m_info_out.channels = 0,m_info_out.samplefrequency = 16000,m_info_out.bitrate = 0, m_info_out.bitpersample = 16,m_info_out.stream_type = PCM_AUDIO.&lt;/P&gt;&lt;P&gt; UMC::HWNDModuleContext hmcontext;&lt;/P&gt;&lt;P&gt;  hmcontext.m_hWnd = (HWND)m_hWnd;&lt;/P&gt;&lt;P&gt;  m_pAudioRenderParams-&amp;gt;pModuleContext = &amp;amp;hmcontext;&lt;/P&gt;&lt;P&gt; UMC::Status stRes = m_pAudioRender-&amp;gt;Init(m_pAudioRenderParams); //m_pAudioRender is UMC::WinMMAudioRender() HERE initialization is failing.&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt; m_pAudioRender-&amp;gt;SetVolume(1);&lt;/P&gt;&lt;P&gt;  UMC::Status sta = m_pAudioRender-&amp;gt;SendFrame(m_pAudMediaOut);&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;In this stepthe AACdecoder-&amp;gt;getframe returns UMC::UMC_OK whenever it gets the frame.&lt;BR /&gt;&lt;BR /&gt;I am having problem in initailizing the audiorender. It is failing.Could anyone please help me out where I am doing wrong?&lt;BR /&gt;&lt;BR /&gt;Please reply.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2011 12:11:36 GMT</pubDate>
    <dc:creator>bharath322</dc:creator>
    <dc:date>2011-09-20T12:11:36Z</dc:date>
    <item>
      <title>AAC - audio decoding and audio rendering</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/AAC-audio-decoding-and-audio-rendering/m-p/826462#M5221</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have tried to do AAC - audio streaming from the camera using the IPP audio-video codecs.&lt;BR /&gt;The following are the steps i have done.&lt;BR /&gt;1)&lt;BR /&gt;The initialization was done only once.&lt;/P&gt;&lt;P&gt;m_pAudioparams-&amp;gt;m_info_in.sample_frequency = 8000;&lt;/P&gt;&lt;P&gt;m_pAudioparams-&amp;gt;m_info_in.bitPerSample = 16;&lt;/P&gt;&lt;P&gt;m_pAudioparams-&amp;gt;m_info_in.channels = 2;&lt;/P&gt;&lt;P&gt;m_pAudioparams-&amp;gt;m_info_in.bitrate = 32000;&lt;/P&gt;&lt;P&gt;m_pAudioparams-&amp;gt;m_info_in.stream_type = UMC::AAC_MPEG_STREAM;&lt;/P&gt;&lt;P&gt;m_pAudioparams-&amp;gt;m_pData = rtspClient-&amp;gt;m_pAudMediaIn;&lt;BR /&gt;&lt;BR /&gt;// where m_pAudioparams is UMC::AudioCodecParams&lt;/P&gt;&lt;P&gt;if (UMC::UMC_OK = (m_pAudioDecoder-&amp;gt;Init(m_pAudioparams)))&lt;BR /&gt;{&lt;BR /&gt; //initialization Sucess&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;2) Then&lt;/P&gt;&lt;P&gt;m_pAudMediaIn-&amp;gt;SetBufferPointer((Ipp8u *)szData,len); &lt;BR /&gt;&lt;BR /&gt;// m_pAudMediaIn is UMC::MediaData object ,szData is raw audio buffer from the camera i get everytime as it streams, len is length of the audio buffer.&lt;/P&gt;&lt;P&gt;m_pAudMediaIn-&amp;gt;SetDataSize(len);&lt;BR /&gt;&lt;BR /&gt;is set eveytime.&lt;BR /&gt;&lt;BR /&gt;3) &lt;BR /&gt;&lt;BR /&gt;UMC::Status stRes = m_pAudioDecoder-&amp;gt;GetFrame(m_pAudMediaIn,m_pAudMediaOut);&lt;BR /&gt;&lt;BR /&gt;if(UMC::UMC_OK == stRes)&lt;BR /&gt;{&lt;BR /&gt;&lt;/P&gt;&lt;P&gt; if(!m_bFirst)&lt;/P&gt;&lt;P&gt; {&lt;BR /&gt; // Audio Renderer initialization is done only once&lt;/P&gt;&lt;P&gt;m_pAudioDecoder-&amp;gt;GetInfo(m_pAudioparams);&lt;/P&gt;&lt;P&gt; m_bFirst =TRUE;&lt;/P&gt;&lt;P&gt;m_pAudioRenderParams-&amp;gt;info = m_pAudioparams-&amp;gt;m_info_out;&lt;BR /&gt;// At this point I got m_info_out.channels = 0,m_info_out.samplefrequency = 16000,m_info_out.bitrate = 0, m_info_out.bitpersample = 16,m_info_out.stream_type = PCM_AUDIO.&lt;/P&gt;&lt;P&gt; UMC::HWNDModuleContext hmcontext;&lt;/P&gt;&lt;P&gt;  hmcontext.m_hWnd = (HWND)m_hWnd;&lt;/P&gt;&lt;P&gt;  m_pAudioRenderParams-&amp;gt;pModuleContext = &amp;amp;hmcontext;&lt;/P&gt;&lt;P&gt; UMC::Status stRes = m_pAudioRender-&amp;gt;Init(m_pAudioRenderParams); //m_pAudioRender is UMC::WinMMAudioRender() HERE initialization is failing.&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt; m_pAudioRender-&amp;gt;SetVolume(1);&lt;/P&gt;&lt;P&gt;  UMC::Status sta = m_pAudioRender-&amp;gt;SendFrame(m_pAudMediaOut);&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;In this stepthe AACdecoder-&amp;gt;getframe returns UMC::UMC_OK whenever it gets the frame.&lt;BR /&gt;&lt;BR /&gt;I am having problem in initailizing the audiorender. It is failing.Could anyone please help me out where I am doing wrong?&lt;BR /&gt;&lt;BR /&gt;Please reply.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2011 12:11:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/AAC-audio-decoding-and-audio-rendering/m-p/826462#M5221</guid>
      <dc:creator>bharath322</dc:creator>
      <dc:date>2011-09-20T12:11:36Z</dc:date>
    </item>
  </channel>
</rss>

