Results 1 to 2 of 2

Thread: Phonon MediaObject playback of audio file stops early

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

    Angry Phonon MediaObject playback of audio file stops early

    I am trying to playback some simple wave files and running into problems. I create a simple MediaIObject and call play, like this:

    Qt Code:
    1. music = Phonon::createPlayer( Phonon::MusicCategory, Phonon::MediaSource( path ) );
    2. music->play();
    To copy to clipboard, switch view to plain text mode 

    The sound doesn't play to the end, it stops early. I created a widget to show me the status of the playing, tracking stateChanged and tick and I get this info:
    totalTime(): 2414ms
    tick time: 928ms
    remainingTime: 1486ms
    currentTime: 928ms

    The sound *can* be heard. The above seems to indicate that Phonon has intentionally stopped the playback. Logging the errorString on stateChanges is also always empty (no errors). The status changes I've also logged and look like:
    StoppedState
    BufferingState
    PlayingState
    StoppedState

    Any ideas on why this is happening?

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

    Default Re: Phonon MediaObject playback of audio file stops early


Similar Threads

  1. Symbian - Audio playback of mp3 stream via GPRS/UMTS
    By lukiluuk in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th November 2010, 01:03
  2. Phonon won't play audio file
    By kar in forum Qt Programming
    Replies: 5
    Last Post: 29th October 2010, 01:41
  3. Replies: 0
    Last Post: 7th May 2010, 17:23
  4. Phonon playback delay
    By jflatt in forum Qt Programming
    Replies: 2
    Last Post: 5th February 2010, 05:58
  5. Phonon MediaObject Speed Problem
    By Revengeog in forum Qt Programming
    Replies: 1
    Last Post: 14th October 2009, 07:15

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.