Symbian play audio from QByteArray
-
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?
-
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
-
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.