Results 1 to 2 of 2

Thread: phonon playback delay

  1. #1
    Join Date
    Aug 2010
    Location
    Germany
    Posts
    54
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: phonon playback delay

    I'm using Phonon for simple audio playback and noticed a delay before the sounds start playing. that is, I call play (or setCurrentSound, enqueue, etc.) and it takes a few moments before the sound plays back. It appears that it is tied to message loop activity, or perhaps it needs to get back to the message loop before it starts playing.

    What I need is that the sound has to start the moment I call play, otherwise it won't be matched to the action that caused it. How can this be done?


    Added after 25 minutes:


    With a simple test I can confirm that it needs to return to the message loop before the sound playback will begin. This is a terrible limitation of the system. Let's just hope if I put it in a thread the thread loop will be enough.
    Last edited by mortoray; 8th December 2010 at 10:19.

  2. #2
    Join Date
    Aug 2010
    Location
    Germany
    Posts
    54
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: phonon playback delay

    Trying to put this in a thread has led to several problems. It simply isn't possible as the AudioOutput object cannot be created in a thread. Thus all signals are still tied to the main event loop.

    I am very unimpressed with Phonon.

Similar Threads

  1. How to playback a IP cam?
    By rayner in forum General Programming
    Replies: 3
    Last Post: 6th December 2010, 21:52
  2. Phonon MediaObject playback of audio file stops early
    By mortoray in forum Qt Programming
    Replies: 1
    Last Post: 6th December 2010, 12:37
  3. Replies: 0
    Last Post: 22nd August 2010, 14:44
  4. Phonon playback delay
    By jflatt in forum Qt Programming
    Replies: 2
    Last Post: 5th February 2010, 05:58
  5. Video freezes during mpeg video playback using Phonon
    By davejames in forum Qt Programming
    Replies: 2
    Last Post: 12th January 2009, 08:45

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.