Bennu Game Development

English Forums => Extensions => Topic started by: josebita on September 17, 2010, 11:44:50 PM

Title: FMOD Ex bindings
Post by: josebita on September 17, 2010, 11:44:50 PM
I'm creating some simple FMOD Ex bindings for BennuGD, not only for playback but also for mic. processing. Yesterday I got microphone spectrum analysis (FFT) working, and it's pretty simple to use. The module's API is not yet finished, but I have it working in Linux, MacOS X and win32. If anybody is willing to give it a try, please let me know.

(http://forum.bennugd.org/index.php?action=dlattach;topic=770.0;attach=1486)

PS: The bars on the bottom-left part of the window are actually the spectrum as captured by my computer's mic. As I was speaking softly, they're small in size and as they are pretty low-freq, they're in the left part of the screen.
Title: Re: FMOD Ex bindings
Post by: FreeYourMind on September 17, 2010, 11:50:18 PM
I give a try to the photo, if you want i try something else, let me know  ;D ;D
Title: Re: FMOD Ex bindings
Post by: josebita on September 19, 2010, 10:42:59 AM
As promised, the example code for a very simple mic spectrum analyser.

MacOS X: http://www.megaupload.com/?d=WLZ8VRU3
Win32:     http://www.megaupload.com/?d=Z77XXY7U
Linux:      http://www.megaupload.com/?d=5QHIV7WF

Comments:
* As I said, the API in still unfinished. Some functions/global vars might change their name or the way they need to be used.

* MacOS X: Uncrompress in a path without spaces and double click the .app file inside.
* Windows: Uncrompress and run main.exe
* Linux: Uncompress to a route without spaces and double-click runme.sh

* You can also use the MacOS X package as a packaging example for your games in MacOS X. As long as the path to the file doesn't cantain spaces, it'll work fine.
* The MacOS X & win32 packages contain the latest binary version of BennuGD. The Linux version assumes BennuGD is already installed in your system, as done by the official installer or the packages in my PPA.