Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Symbian play audio from QByteArray

Symbian play audio from QByteArray

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kovacadam
    wrote on last edited by
    #1

    Hi!

    I have a QByteArray (coming from a tcp connection) what contain pcm audio (created by a desktop C# program). I tried a lot of thing, last time this:

    m_audioOutput = new QAudioOutput(QAudioDeviceInfo::defaultOutputDevice(), m_format, this);
    m_output = m_audioOutput->start();
    m_output->write(ba);

    but no result.

    Can someone tell me how can I play the audio?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      The following article might be useful for playing an audio file on a Symbian device:

      • "Playing audio with QSound in Qt for Symbian":http://www.developer.nokia.com/Community/Wiki/Playing_audio_with_QSound_in_Qt_for_Symbian
      • "Play Audio Files using Qt Mobility":http://www.developer.nokia.com/Community/Wiki/Play_Audio_Files_using_Qt_Mobility

      http://anavi.org/

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kovacadam
        wrote on last edited by
        #3

        Thanks, but I don't save the data to a file. So I want to play the content of QByteArray without saving it.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          In such case you might also consider using Phonon: "Streaming Audio with Qt":http://www.developer.nokia.com/Community/Wiki/Streaming_Audio_with_Qt. In general streaming should be also possible with "QMediaPlayer from Qt Mobility but I have no idea does it work fine on Symbian":http://www.developer.nokia.com/Community/Discussion/showthread.php/209751-S-3-Stream-audio-via-WLAN-with-QMediaPlayer.

          http://anavi.org/

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved