Results 1 to 2 of 2

Thread: Playing streaming PCM Audio using QBuffer and QAudioOutput Class

  1. #1
    Join Date
    Oct 2009
    Posts
    66
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Question Playing streaming PCM Audio using QBuffer and QAudioOutput Class

    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 :
    Qt Code:
    1. if(temp->m_buffer.isOpen())
    2. {
    3. temp->m_buffer.close();
    4. }
    5. temp->m_buffer.write(temp->m_charBuffer, 2048);
    6. temp->m_buffer.setData(temp->m_charBuffer,2048);
    7. temp->m_buffer.open(QIODevice::ReadWrite);
    8. 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?

  2. The following user says thank you to kapoorsudhish for this useful post:


  3. #2
    Join Date
    Oct 2009
    Posts
    66
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Playing streaming PCM Audio using QBuffer and QAudioOutput Class

    Hi All,
    Any update on this??

Similar Threads

  1. How to flush audio buffers controlled by QAudioOutput?
    By hackerNovitiate in forum Newbie
    Replies: 0
    Last Post: 20th January 2012, 02:06
  2. QaudioOutPut Stream Audio In Chat Voice ?
    By Thành Viên Mới in forum Qt Programming
    Replies: 2
    Last Post: 17th June 2011, 04:33
  3. QAudioOutput Play Audio Buffer chat voice ?
    By Thành Viên Mới in forum Qt Programming
    Replies: 5
    Last Post: 11th May 2011, 20:35
  4. QaudioOutput play buffer audio real time disconnect network ?
    By Thành Viên Mới in forum Qt Programming
    Replies: 1
    Last Post: 10th May 2011, 13:20
  5. Streaming QImage (QByteArray, QDataStream, QBuffer)
    By knarz in forum Qt Programming
    Replies: 5
    Last Post: 17th January 2009, 23:05

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.