AFAIK any wav file can be played, important it that it must be in PCM encoding. in my application i used 44khz 16bit stereo and 22khz 16bit mono without any problem (but it was tested only on t5, t|x and treo650)
Floriano Scioscia wrote: > Hi, > > it's quite a long time now since I implemented wav file playing in my > application, but I remember that your wav file must have the right > encoding and bitrate parameters. > > After many experiments I had found that 8-bit, 16 kHz, mono > (single-channel) wav files with PCM encoding can be played correctly > with SndPlayResource. > > I hope this will help. > > Best wishes > Floriano > > > > Anoop ha scritto: >> Hi all,, >> Am trying to load a wav file into my application through >> resource editor. After creating a new sound am getting an xml editor >> with the name of the wave file. This file is hving zero bytes of data. >> Now what should i do to get a audio file added to the application. >> Should i try loading manually a sound file with the same name into the >> resource folder. I tried working on that, but the file doesnt play.. >> Have a look at the following code segment. >> >> SndPtr soundP; >> MemHandle recordH; >> recordH = DmGet1Resource(sysResTSound,1000); >> soundP = (SndPtr) MemHandleLock(recordH); >> SndPlayResource(soundP,1024,sndFlagSync); // 1024 is 0dB >> // (unity) gain >> MemHandleUnlock(recordH); >> > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
