Symbian play audio from QByteArray
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();
but no result.
Can someone tell me how can I play the audio?
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
Thanks, but I don't save the data to a file. So I want to play the content of QByteArray without saving it.
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.