Results 1 to 3 of 3

Thread: store and read mp3 files from buffer

  1. #1
    Join Date
    May 2011
    Posts
    120
    Thanks
    33
    Qt products
    Qt4
    Platforms
    Windows

    Default store and read mp3 files from buffer

    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?

  2. #2
    Join Date
    Jul 2011
    Location
    Brasil
    Posts
    39
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: store and read mp3 files from buffer

    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.
    Last edited by NullPointer; 2nd August 2011 at 07:01. Reason: correct MediaSource manual link

  3. The following user says thank you to NullPointer for this useful post:

    vinayaka (2nd August 2011)

  4. #3
    Join Date
    May 2011
    Posts
    120
    Thanks
    33
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: store and read mp3 files from buffer

    Is there any ex:code?

Similar Threads

  1. Replies: 13
    Last Post: 10th March 2011, 07:35
  2. Replies: 16
    Last Post: 22nd February 2011, 09:34
  3. read a .txt file and store it in a double array
    By fatecasino in forum Newbie
    Replies: 5
    Last Post: 3rd December 2010, 20:13
  4. QFile - file read parts of the buffer
    By eugen_Qt in forum Qt Programming
    Replies: 4
    Last Post: 10th November 2009, 14:52
  5. Replies: 12
    Last Post: 17th June 2009, 05:34

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.