PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Loading Sound Effects

Have any of you experienced problems loading wave files in PFP 0.2.3?

My program works on the PC, and in the emulator perfectly, but when I try it on the device, I'm getting an application error.

Exception: 0x80000002
Address: 00017fa4

The really weird thing is that I can load .mod files and play them fine. I've also compared my code to that in the blit sample. Blit works on my device, but my application doesn't.

So I've tried relocating the .load() in the .InitGame() function, changing the .wav files from 22050 to 11025, making sure the .wav files are in the "WAVE" resource folder, recompiling for both Pocket PC 2000 and 2002, and about 20 other things. Nothing seems to help.

All of my attempts still worked on the PC and emulator, but not on the device. I'm at a loss. If any of you have experienced this before, I'd appreciate your help.

Thanks, John
Try to use your wave on the blit sample (rewrite for example chicken.wav with the wave that cause the problem), rebuild the sample and run it on your pda and let me know what happen.

If even the blit sample crash send the wave file at gersen.new@libero.it, I'll try to check why my sound engine don't like it :)

Bye
gersen, you were right. I substituted my waves for the chicken.wav, and it caused the same error with blit.

I uploaded one of them to: http://www.john-till.net/personal/downl ... _slide.wav

Thanks,
John
I have fix the bug. I have noticed that some waves are not "standard" so I have updated my load function to support them.

I post here a link to PFP 0.2.4 beta2. It contains some fixs and some new features. It's a beta but I have tested it a lot so it should work right.

changes:
* added function for loading sfx and mod from file
* added function for changing master volume
* fixed a bug when loading strange waves (thanks Presto for report)
* fixed a bug on font class (thanks Mark Ramsey for the patch)
* clean up a bit sound thread exit code

http://digilander.libero.it/funnybits/p ... _2_4b2.zip

Presto let me know if your waves now work.

Bye
gersen,

You Rock! The new version works great.

Thanks!