PDA

View Full Version : store and read mp3 files from buffer



vinayaka
2nd August 2011, 06:43
An audioplayer is done using phonon.We want to play more than 50 mp3 files. how can we store all these mp3 files in a buffer and how to read all files from the buffer (to avoid the delay while repeating the song ). Can you give us an ex: code?

NullPointer
2nd August 2011, 06:59
You should load all MP3s to QByteArrays...

Look MediaSource::MediaSource ( QIODevice * ioDevice ) at http://doc.qt.nokia.com/latest/phonon-mediasource.html . Then subclass a QIODevice or use QBuffer...

Hth.

vinayaka
2nd August 2011, 10:25
Is there any ex:code?