×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    96

    Lightbulb Tackling Phonon sound play delay problem.

    Hello,

    I am developing game, I have requirement to play sound immidiate after I call play() function. But in current implementation am getting delay after calling function.

    Code:
    void play(){
        mediaObject->stop();//stop current sound before playing another
        mediaObject->play();
    }
    
    
    void init(){
        mediaObject = //create new mediaObject
    }

    Above functions is in C++ class. I am creating instance of that class in QML and calling play function. But sound plays after delay.

    ( Note: using QSound is not an option as N900 will hang when QSound is used )

    Please let me know how to make sound play as soon as I call function.

  2. #2
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Tackling Phonon sound play delay problem.

    Most probably the delay is due to Phonon code.
    Did you try to use Qt Multimedia or directly GStreamer?

    http://www.developer.nokia.com/Commu...sing_GStreamer

  3. #3
    Registered User
    Join Date
    Sep 2010
    Posts
    96

    Re: Tackling Phonon sound play delay problem.

    Quote Originally Posted by gnuton View Post
    Most probably the delay is due to Phonon code.
    Did you try to use Qt Multimedia or directly GStreamer?

    http://www.developer.nokia.com/Commu...sing_GStreamer

    Hey I tried Qt Multimedia. My application hangs. I am trying to find method to play sound using GStreamer. As am new for GStreamer I couldn't know how to us Gstreamer form above link. Can you please direct me on how to play audio using GStreamer!!!

Similar Threads

  1. N8 sound play problem
    By mastermindcoders in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2010-10-09, 16:41
  2. problem in play sound MIDI and MP3 file
    By cman in forum Symbian
    Replies: 2
    Last Post: 2007-12-11, 17:36
  3. Can't play sound in Sound Tab — Series 40 Theme Studio 2.2 — says: no sound support
    By alex_inside in forum Tools and SDK Feedback (Closed)
    Replies: 0
    Last Post: 2007-09-03, 20:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×