Dzz
stmia r0!, {r2-r9}
Hello all. As promised, here is the source to the port of the tremor library running on the 940.
http://gp2xgamer.com/ogg940.zip
To test it, copy test.gpe, code940.bin, and test.ogg to the gp2x, then run test.gpe
Controls in the test app:
START: exit
A: pause and unpause the music playback
B: reset the music back to the beginning
X: reload the music (demonstrates loading a new music clip from a file)
The source is basically as simple as I can make it. In the "940" subfolder the file "vorbis.c" contains a hacked-up version of the tremor library, which includes some junk I added such as a memory allocator tailored to the needs of the vorbis code that I observed when doing the music I needed.
This code is released under the following license:
Do anything you want with it (consistent with the fact that it includes the tremor library which is under basically a BSD license meaning you give them credit [as I am doing here -- I did not write the super-cool code to decode the ogg vorbis data]). Don't blame me if you can't get it to work. If it burns your house down, that's your problem. I am not responsible for your failure to understand how to adapt it to your purposes and I am likely to ignore all questions about it. All complaints will be ignored. You're on your own. Good luck.
My advice is that if you aren't willing to spend significant time figuring it out and adapting it to your purposes, forget about it. Perhaps somebody will be willing to make it even simpler to use, though I did my best with only spending about four hours pulling it out of Vektar and making it reasonably self-contained. I don't have more time to give than that, since I'm working on games.
Have fun.
http://gp2xgamer.com/ogg940.zip
To test it, copy test.gpe, code940.bin, and test.ogg to the gp2x, then run test.gpe
Controls in the test app:
START: exit
A: pause and unpause the music playback
B: reset the music back to the beginning
X: reload the music (demonstrates loading a new music clip from a file)
The source is basically as simple as I can make it. In the "940" subfolder the file "vorbis.c" contains a hacked-up version of the tremor library, which includes some junk I added such as a memory allocator tailored to the needs of the vorbis code that I observed when doing the music I needed.
This code is released under the following license:
Do anything you want with it (consistent with the fact that it includes the tremor library which is under basically a BSD license meaning you give them credit [as I am doing here -- I did not write the super-cool code to decode the ogg vorbis data]). Don't blame me if you can't get it to work. If it burns your house down, that's your problem. I am not responsible for your failure to understand how to adapt it to your purposes and I am likely to ignore all questions about it. All complaints will be ignored. You're on your own. Good luck.
My advice is that if you aren't willing to spend significant time figuring it out and adapting it to your purposes, forget about it. Perhaps somebody will be willing to make it even simpler to use, though I did my best with only spending about four hours pulling it out of Vektar and making it reasonably self-contained. I don't have more time to give than that, since I'm working on games.
Have fun.