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/