Results 1 to 2 of 2

Thread: Synchronization of mp3 tracks on Qt

  1. #1
    Join Date
    Jun 2012
    Qt products
    Unix/X11 Windows

    Default Synchronization of mp3 tracks on Qt

    I'm developing a simple program with Qt that plays some songs, in each song for each instrument I have a mp3 track and the user has the ability to change the sound volume of each track separably so he can listen to the tracks he wants. The major problem I'm facing is that of synchronization. Especially if I'm running the program off of a CD or Pen-drive, I've had some ideas but they didn't work well.

    Right now I'm using phonon but wouldn't mind changing to Mobility if necessary (only if really necessary). What strategy really works in this case? Why is it worst on CD or Pen-drive? Since I'm interested in mostly running from these sources how could I improve synchronization on these devices?

  2. #2
    Join Date
    May 2012
    Bangalore, India
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Unix/X11 Windows

    Default Re: Synchronization of mp3 tracks on Qt

    see example qmusicplayer in QtSdk example folder. Or use signal and slots for changing the track. Use---> void MediaObject::finished () signal which will emit when the object has finished playback. It is not emitted if you call stop(), pause() or load(). It is emitted only when the current media source has finished playing and the media queue() is empty, or when a fatal error occurs.

Similar Threads

  1. Read audio CD tracks as files
    By skepticalgeek in forum Qt Programming
    Replies: 1
    Last Post: 26th March 2010, 12:25
  2. thread synchronization
    By freekill in forum Qt Programming
    Replies: 10
    Last Post: 6th January 2010, 18:29
  3. Qt4 Access to Linux HD Sectors and Tracks
    By jkennedy in forum Qt Programming
    Replies: 4
    Last Post: 8th December 2009, 07:49
  4. Phonon skipping two tracks
    By matio in forum Qt Programming
    Replies: 4
    Last Post: 24th November 2009, 18:03
  5. A crosshair which tracks a displayed curve
    By MrGarbage in forum Qwt
    Replies: 6
    Last Post: 22nd January 2008, 08:32

Tags for this Thread


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.