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_audioOutput->start(&temp->m_buffer);
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);
To copy to clipboard, switch view to plain text mode
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?
Bookmarks