My question is as simple as the heading tells...Is there a possibility to include .wav soundfiles as a resource with BIRD? I´m trying to write a programm for my palm where a certain wave sound is played if a button is pressed. So I started off by using onboardC with BIRD. I made an simple form with a button. As action in the .c file I tried to use the PalmAPI function "sndPlayResource"...my knowledge is a bit limited in terms of the details of palm programming, but I found out, that the wave file i`d like to play have to be "converted" in a resource to get called by the function. But how can I get the wave file in my .rsrc file(I didn`t found anything in the "new"-di9alog of BIRD)? A second hint I found was to use "pilrc" resource compiler to make a resource (.bin file) of my sound...that worked well, but I don`t have a clue how to call the .bin file with the "sndPlayResource" function...
So if anybody has a suggestion how to get resources from wave files primarily by using BIRD, please post them. Any help or hint is appreciated!
cheers chrs
Réponse n° 1 -------- le 10/02/2010 @ 15:32 par Philippe
visiteur
Pehaps this works : 1- create a resource database with one resource of type WAVE, of the suitable size by using the new/generic popup in BIRD 2- synchronize 3- replace the data that follow the header of the prc file in the backup directory with the data of the .wav file. 4- re-synchronise.
Réponse n° 2 -------- le 12/02/2010 @ 22:25 par aldweb