Given all that needs to be done, I suspect the VB declarations/examples are low on the priority list. I did try to get started the other day, but failed in every attempt to properly declare or call functions (I’m not sure which). I’m not familiar enough with the orginal code format to derive some preliminary VB code.
For instance, it appears that most (maybe all) functions now return a user-defined type, instead of TRUE/FALSE or pointer/handle (as is the case with version 3.x). Did I at least get this right?
Regardless, I would like to ask if someone could post just a few VB declarations to help me get started. Maybe the essential functions used to initialize and setup the system, and then one or two functions used to open/access media.
From there, I think I can figure out what needs to be done in general.
- stdev asked 12 years ago
Well, a working up-to-date type library is better than nothing…
However, I’d prever those declared functions as for fmod3, because it checks dll declarations not on startup (were the application itself cannot intercept), but when you’re using it. This allowes to have declaration for fmod 3.xx to 4.xx in one executable…
You try the fmod3 GetVersion to get the version info or an error occurs, so you try the fmodex GetVersion and use it’s api.
I’ve currently recoded my player and put all fmod ‘stuff’ into one module (layer), so I have only to add fmodex (fmod4) handling, or totally rewrite this small module. Flac and Musepack support are also included, and can be activated using a simple constant.
I know you’re busy with fmod itself, but I hope the vb api declaration are available a few weeks before the official fmodex (beta) release, so I can finish including fmodex in my player.
And what about PureBasic support ?
[quote="brett":3cui6qor]hm yeah i think we’ll try and lock the api a bit for beta, so to do that we’ll wait for the geometry API that is being worked on at the moment.. It should be available in the next few weeks. In the meantime we’ll do a few more alphas.[/quote:3cui6qor]If I can get the script you use to generate other language bindings, I can adapt it to generate a VB .BAS file and VB .TLB. I just don’t have time to manually maintain the bindings right now.
[quote="brett":29ukzjmd]at the moment we’re not using a script for C# because extra code had to be written, and the delphi header i’m just diffing and updating myself at the moment, the VB header will probably be done manually as well.
We’re only generating the function list in fmod.h from fmod.hpp at the moment.[/quote:29ukzjmd]I’d like to take a shot at it nonetheless, if you don’t have a problem with that.
No matter Janus – thanks for your work so far!
What language was the TLB written in, and is the source for it available anywhere?
Is anybody else working on a TLB or VB module to allow FMOD Ex to be used in VB? Unfortunately I’m not working with VB.NET yet so I can’t use a .NET interface…
Sorry to bang on about this, but I just wanted to ask again if anyone else is developing a VB interface that is tracking the latest releases of FMOD Ex?
I guess it’s not possible to develop a .bas interface as with FMOD 3 as FMOD Ex is more object-oriented. So I wondered if there was another TLB or ActiveX-style DLL in development?
The last version of Janus’ TLB was for FMod Ex alpha 6. I want to try and update it for alpha 13 – and I guess the best way to find out what changes have occured in the API would be for me to diff the *.h files.
Unfortunately I don’t have a copy of the alpha 6 zip anymore, and it doesn’t appear to still be available from your site either. Is there any way I could get a copy of the old alpha 6 headers?
Please contact me via email or PM on this forum if you don’t want to make it available for general download again.
Please login first to submit.