QSound don't play wav in qtopia 1.5.4, 1.7.0 and 2.2.0
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.
Re: QSound don't play wav in qtopia 1.5.4, 1.7.0 and 2.2.0
What does isFinished tell you?
Re: QSound don't play wav in qtopia 1.5.4, 1.7.0 and 2.2.0
The function IsFinished exist in the 4.xx version only.
Re: QSound don't play wav in qtopia 1.5.4, 1.7.0 and 2.2.0
Can you read "sound/a.wav" using QFile? Maybe you should try an absolute path?
Re: QSound don't play wav in qtopia 1.5.4, 1.7.0 and 2.2.0
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
Re: QSound don't play wav in qtopia 1.5.4, 1.7.0 and 2.2.0
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?
Re: QSound don't play wav in qtopia 1.5.4, 1.7.0 and 2.2.0
Quote:
Originally Posted by
alexandr
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/multil...pt/ch14-05.htm