Hello Palm OS Developers,

After a long struggle to activate a programmatic playback of a WAVE file I
am humbly
turning to the developers community for help.
Here is what I am trying to do: (this is my first palm project)
-I am writing an application on the iQue3600 which is exploiting:
  1) the GPS capability to get a location fix and 
  2) the sound playback capability to play a prerecorded .WAV file
In short it is a museum guide which is "telling" the visitor what he sees.

The GPS reading went relatively easy thanks to the API published by GARMIN 
in it's SDK. On the other hand the sound playback gave me the shiver. As I
said
I am struggling with it for a long time. When I started this project I found
in the
Palm OS Reference.pdf the "SndPlayResource" function and I thought it will
be
a cake-walk. It turned out to be a "bridge too far to reach".
I am loading the .WAV files (around 100 different .WAV files) in the SD card
where
they go to the AUDIO directory.
Now, I can't find those files with none of the
"DmGetNextDatabaseByTypeCreator",
"DmGetDatabase", "DmFindDatabase" and "DmDatabaseInfo" using CardNo = 1.
( I did not try "DmOpenDatabaseByTypeCreator")

If I manage to load one .WAV file to the internal memory then  I can't get a
pointer to
the "RIFF" ID (byte 0 in a simple .wav file). The problem is because .WAV
files are
defined as resource and since I am using the PilRC Designer instead of the
Constructor for
Palm OS I couldn't find the equivalent macro to define a resource database.
 
I tried to use other applications that play sound files to launch them from
my application
but there is no (easy) way to get the control back after the playback
finished.
I tried to purchase some static library that provides sound playback but the
prices I was
quoted ($500 to $2000) are out of reach for an independent developer like
me.

Maybe somebody could show me how to overcome the stumbling-block or give me
an advice
what other direction to try.

Thanks in advance for any help.

A.Fischer
Software Engineer 




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to