PDA

View Full Version : Playing streaming PCM Audio using QBuffer and QAudioOutput Class



kapoorsudhish
30th November 2013, 05:09
Hi All,
I am trying to play streaming audio which i receive as PCM data using QAudioOutput and QBuffer classes but i am not able to play it properly. It starts and plays garbage and then it stops . I have to call this :



if(temp->m_buffer.isOpen())
{
temp->m_buffer.close();
}
temp->m_buffer.write(temp->m_charBuffer, 2048);
temp->m_buffer.setData(temp->m_charBuffer,2048);
temp->m_buffer.open(QIODevice::ReadWrite);
temp->m_audioOutput->start(&temp->m_buffer);


again again to play the garbage audio continuously but i still cannot play the actual captured audio properly. Any help as to how streaming audio can be played using Qt Classes?

kapoorsudhish
2nd December 2013, 09:08
Hi All,
Any update on this??