> --- sonia tiwari <[EMAIL PROTECTED]> wrote: > > Is it possible to save a *.wav file as *.wav file on palm.
--- Joe Malone <[EMAIL PROTECTED]> wrote: > Yes. Use VFS to store files on expansion cards. See chapter > 8 of the Palm OS � Programmer�s Companion. > ... > There is nothing at all stopping you from storing a .wav file > in a database. > ... > Maybe you should describe what you actually want to do and then > someone can suggest an approach to doing that. > --- Then, Sonia responded off-list: -------- start of Sonia's off-list email -------- > Yes. Use VFS to store files on expansion cards. See chapter > 8 of the Palm OS � Programmer's Companion. Actually I did thought about VFS Manager but I don't have expansion cards. > The file is on a desktop? The file is not on the desktop. I want to load it on the palm as a wav file not as a pdb file. > What is wrong with putting data in a database? Actually the data is more than 64K. I am able to play the wav files which are less than 64K by either attaching them as resources or converting them to pdb. But with files >64K, the problem which I am facing is the wav file on conversion to pdb is breaking up into records and when I have to call SndPlayResource() API of Sound Manager, I need to pass the ptr to the wav data which in my case is broken up into records. It is no longer continuous stream So basically I want to get a pointer to a continuous stream of data. > Plus, if the wave file is created on a Windows computer > (little-endian) and you plan to use it on a Palm powered > handheld (big-endian) you will have to byte swap all the > multi-byte numbers. I don't think I should face this problem since I would be playing it on ARM platform as ARM is little endian. Presently I am using the Palm Simulator for testing and there happens to be no problem in playing. thanks in advance -------- end of Sonia's off-list email -------- And here is my new response: So, what you want is a pointer to something >64KB so you can pass it to SndPlayResource(). I haven't used SndPlayResource(), so it might not work, but the only obvious solution is to use FtrPtrNew(). Starting with Palm OS 3.5, FtrPtrNew() can allocate chunks larger than 64k and FtrGet() returns a pointer to the chunk. You could store the wave "file" in a database and then assemble it into feature memory, then call SndPlayResource() with the feature pointer. The big problem with this (if it works at all) is that it requires 2 copies of the data - a big waste a data storage (feature memory is also in the data storage area). Perhaps someone else has played with using SndPlayResource() on wave files > 64K and can offer some advice? __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
