Results 1 to 4 of 4

Thread: QSound problem?

  1. #1
    Join Date
    Jan 2008
    Posts
    91
    Thanks
    8

    Default QSound problem?

    Hi all,
    I am using Qsound on my embedded Arm device to play some .wav files. My qt version is 4.3.3. It plays wav files very good with
    "mySoundplayer->play("mysoundfile.wav");" command. But i couldn't use

    QSound::isFinished();
    QSound::loop();
    QSound::setLoops();

    Can you explain me why I couldnt use these functions? Dont they working correctly?

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSound problem?

    can we see some code ?? how are u trying to use those functions ?

  3. #3
    Join Date
    Jan 2008
    Posts
    91
    Thanks
    8

    Angry Re: QSound problem?

    QSound *myPlayer;

    void deneme::soundPlay()
    {
    if(myPlayer->isAvailable())
    {
    myPlayer->play("SystemClose.wav");
    while(!myPlayer->isFinished())
    {
    printf("It is still playing \n");
    }
    }
    }

    This is in the close event and i want to play a .wav file when my program closes.But it doesnt wait for finishing.
    It says segmentation fault on console.

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSound problem?

    Where have u initialised mPlayer ?
    mPlayer = new QSound(); // missing, isnt it ?

Similar Threads

  1. QSound problem
    By maverick_pol in forum Qt Programming
    Replies: 0
    Last Post: 3rd November 2008, 09:54
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  3. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 08:47
  4. QSound class features problem
    By MarkoSan in forum Qt Programming
    Replies: 8
    Last Post: 20th December 2007, 14:21
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.