PDA

View Full Version : QSound don't play wav in qtopia 1.5.4, 1.7.0 and 2.2.0



alexandr
23rd January 2007, 16:34
I am trying to use QSound::play("sound/a.wav") and nothing happens.
The QSound::isavailable return true.
This happens (no sound) on the linux (suse 10.2) and on the zaurus (onboard compilation).
The wav file is 22050 and has length > 8Kb.

Thank you.

e8johan
24th January 2007, 09:19
What does isFinished tell you?

alexandr
25th January 2007, 10:26
The function IsFinished exist in the 4.xx version only.

jacek
25th January 2007, 12:53
Can you read "sound/a.wav" using QFile? Maybe you should try an absolute path?

alexandr
26th January 2007, 21:17
An absolute path don't work too.
The sound file properties is:
Sample Rate: 11,025 Hz
Sample Size: 16 bit
Channels: 1
File size: 11,802 B

alexandr
30th January 2007, 19:08
I can play it using OSS.
Now I have other problem, if I send wav stream to the /dev/dsp (using write), then on the start I have loud "crack/click".
Should I strip the wav header from the file and send raw stream (data chunk) only?

jacek
30th January 2007, 20:05
Should I strip the wav header from the file and send raw stream (data chunk) only?
AFAIK it accepts raw data.

http://www.oreilly.de/catalog/multilinux/excerpt/ch14-05.htm