PDA

View Full Version : How to send a sound file to the audio output from QProcess?



inger
6th December 2012, 11:59
Hello,

I want to use a GSM terminal to send voice mail from a Lubuntu PC. I use Qt to create a program.
I also use the same program to send SMS. That works fine.
In the Qt program I want to start a QProcess to start a sound file to send to a GSM terminal. To call a phone works well, but I am not able to send a sound file to the Audio output.
The bash program that start and play the sound file works well from the terminal. Then the sound file is sent to the Audio output. But when I start the bash program via QProcess, the audio output is not used.
How can I redirect the sound file to the Audio output using QProcess and the bash program?

inger
12th December 2012, 09:36
That was my fault.
The function that started the soundfile, was not started.
No the soudio output works well :)