I have been searching for a sound mixing package that I can actually afford. So far, this is just MikMod since its free, but MikMod seems to produce a decent amount of static. I have tried PGN sound mixer, and that wouldnt load half the wavs i gave it, even thier sample app could not. Fmod is a few thousand isnt it? And none of these have mp3 support.... I have come to only one conclusion, that I need to write my own. My main problem is, I really dont know how sound works exactly. I have been looking all over to find info on it, but I cant seem to find any. Anyone have any suggestions?
Take a look at this post right here on PM:
http://forums.pocketmatrix.com/viewtopic.php?t=1370&postdays;=0&postorder;=&highlight;=zap%20pow&start;=15
Look down a ways for a post by CPS. He has (as of this writing, still available) an example called ZapPow. I can tell you for me it helped clarify a lot of things, it was probably the single best thing I found when I was writing my own sound library. It's very basic, so on it's own I don't know how useful it is, but as an example to help you on your way, I'd say it's fantastic.
Looks great, except for the sample app doesnt seem to work. It loads, but I dont hear anything when im trying to run the sounds?????
Not sure what the trouble is, it worked for me first time as I recall. Did you copy the WAV files to your device as the documentation indicates? Naturally your tapping the buttons (nothing plays until you do)? Those are obvious, but I can't think of much else.
Here the lib I know the are free to use:
As mentionned before, Mikmod
Fmod (really good one. A lot of asm, so it's fast)
PLib (free source code)
For mp3 playback, I don't think you want to play a mp3 on your device (in a game it will be way too slow).
With some Decent coding, mp3 should be just fine. I have tested it out by playing media player and running my game at the same time. If windows media player can run, well geeze, im sure any decent written code should be able to beat it. I dont know how efficiant the PPC one is, but on the regular computer Winamp takes 2% system resources, Media player on the other hand takes around 40%......
Oh, I figured out why it wasnt playing sounds. The sounds have to be in the base \ dir. I figured it out after looking through the code.
For MP3s, you would probably want to check out MAD (I don't remember the URL). Since it uses entirely integer math, it should easily run on a PPC as long as you aren't doing *too* much else at the same time.
Oh, MAD is gr8! Fixed-point ^_^
here the url:
http://sourceforge.net/projects/mad/
I'll need to do some performance test with that :)
When you're going to write one shareware title with fmod (as an individual), it costs $100. They review these titles case by case, if you don't qualify you'll have to buy a commercial license which costs $1250.
Ow, if your title is freeware the usage of fmod is completely free!
And if your time equals money, then fmod may not even be more expensive then MikMod (which is completely free) ;)