Hello, im new to FMOD, i choosed FMOD because the features-list say that it can EASY play/stream sounds from WAD-like file-systems.
I looked through the Documentation, searched the Forum, looked at the Examples, but i found no example or clue how i can play MP3/OGG or whatever from package files ! I simply want to do something like this:
Tell FMOD the name of my package-file (for example: mypak.pak) and tell him the position where the MP3 or OGG file begin, and finaly tell him how big the file is. But how ?
Sure i could extract the MP3 out of the package file first and then tell FMOD that he stream and play it, and if the MP3 is no longer needed simply delete it… but there must be a way to stream directly from my package file… like the feature-list promised… but how ? can anyone give me a clue ?
- Celvyn asked 15 years ago
thank you brett, but new my new problem is, how to setup one of these callbacks in VB ! Not C, or Delphie, VB ! i know that stuff like “int myopen” mean “dim myopen as integer” in VB, but what the other stuff is all about ?
or, to make the question simple: how a callback look as VB-code ?
Ahh.. callbacks in VB. These are a tricky one because VB cannot handle the cdecl function declaration. The only way to implement callbacks in VB at this stage is to make a custom DLL in Visual C++ that handles the callbacks for you and then passes them to your VB application. There have been many other mentions of VB callbacks in this forum.
WHat you must do is implement file callback functions. FMOD uses these functions to access the file. Your callback functions will then get the data that FMOD asks for out of the package file. I have done this before for playing streams from a ZIP file.
thanks for your answer
well, im to n00b to FMOD to figure out the Callback stuff.
but scary is, i tryed BASS and hey, in just 2 simple lines i created a perfect working stream !! i would prefer to use FMOD because its more optimized but hmm as far i dont know how it look bad for fmod…
thank you anyway !
Please login first to submit.