-
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?
-
Re: QSound problem?
can we see some code ?? how are u trying to use those functions ?
-
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.
-
Re: QSound problem?
Where have u initialised mPlayer ?
mPlayer = new QSound(); // missing, isnt it ?