QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Playing wav files with VSDK |
Ref. No. |
QNX.000009458 |
Category(ies) |
Development, Audio |
Issue |
I am trying to play wav files with the Voyager Software Developer's Kit (VSDK) version 2.0. How can I do this?
|
Solution |
The first thing that you must do is make sure that vplay can play the files. If vplay can not play the files, then it will not work.
Next, you must change the web_config.c file. You will need to change the "#ifdef 0" to "#ifdef 1" for playing audio/wav.
If you want voyager.server to handle sound, you must set the 'hdata.helperapp' field. This field must contain the helper application which knows how to handle the sound file. If this field is set voyager.server will download the file and spawn the helper application. The helper application will then play the sound from the file.
If you want your client to handle the sound, put a blank in the 'hdata.helperapp' field. This will invoke the web_unknown() callback. In this callback, you can handle the unknown or unhandled sound html tags. This is where you usually handle EMBED tags.
Things to check if this does not work:
-make sure that vplay is in the path -the BGSOUND html tag is not currently supported |
|