Momergil
2nd September 2011, 15:33
Hello!
I'm having a problem in using QSound; it simply doesn't work.
It call it normally:
sound = new QSound("./alarm1.wav",this);//getting the audio file
sound->setLoops(3);//three times that specific audio file is played
sound->play();
and the slot were this code is set is called by a signal, connected by a connect() in the appropriate time.
I already verify that the connection is OK. The isAvaliable() function returns true. The name of the file is correct, and it is in the same directory of the executable. But the sound simply doesn't work.
There is no message in the Debugger that tells something. The anything wrong that states when I run it is:
&"warning: GDB: Failed to set controlling terminal: Argumento inv\303\241lido\n"
But it doesn't seems to have any connection with the QSound problem (in fact, if somebody knows what this debug message is saying, I would like to know that as well!).
Could somebody help, please?
Thanks!
Momergil
I'm having a problem in using QSound; it simply doesn't work.
It call it normally:
sound = new QSound("./alarm1.wav",this);//getting the audio file
sound->setLoops(3);//three times that specific audio file is played
sound->play();
and the slot were this code is set is called by a signal, connected by a connect() in the appropriate time.
I already verify that the connection is OK. The isAvaliable() function returns true. The name of the file is correct, and it is in the same directory of the executable. But the sound simply doesn't work.
There is no message in the Debugger that tells something. The anything wrong that states when I run it is:
&"warning: GDB: Failed to set controlling terminal: Argumento inv\303\241lido\n"
But it doesn't seems to have any connection with the QSound problem (in fact, if somebody knows what this debug message is saying, I would like to know that as well!).
Could somebody help, please?
Thanks!
Momergil