0
0

Hello.
I would like to know if there is any support (existing or planned) for .NET.
I intend to use FMOD with Visual C# or if necessary with VB .NET.
I got a sample-program to run under Visual C#, but I had to migrate everything by hand.
Thanks for any information. Prem.

  • You must to post comments
0
0

Just to notify there is .Net C++ its included as an extention to C++. I got it with microsoft visual C++.Net 2002 edition in project types its named as “Managed C++ Application” or “Managed C++ Class Library”

  • You must to post comments
0
0

Hi Sly again!

I just notice your wrapper you did!

I compare with the vb6 wrapper (*.bas)!

There are a lot and a lot of enums you did not code? You only focus on FSOUND right and not FMUSIC?

Is it bcs FMUSIC is not compatible or you did not had the time to continue this wrapper?

If it is bcs you don’t have the time, maybe i can try my best to come out the full c# wrapper for it!

There are couple of *.h files in the include folder? 1 is fmod.h, but there are other too like fmoddyn.h, fmod_errors.h? Those i also need to convert too?

If yes, so to write a wrapper, all the header files must be converted! Only header files? Hmm.. if yes.. wow.. that is not that hard as i expected!

Any comments?

Thanks.

Regards,
Chua Wen Ching :p

  • You must to post comments
0
0

I posted on here a while ago that I have a working c# wrapper for fmod. I also have 1 for encoding wav files into mp3 files and I also have 1 that rips cds into wav files.

None of the wrappers are my work but I have had to fiddle with them a bit to get them fully working. All of the original comments by the original authors are still there, so I hope they don’t mind me offering them to others.

Whilst c# is managed code, and therefore would probably operate about 2% slower than c/c++ equivalent, I have to say that my mp3/cd player and ripper works a dream on c# without any real performance problems.

Send me a PM and I can send you the wrappers if you need them.

  • You must to post comments
0
0

I am new to fmod.

I somehow look into the threads.

So it means that can i use fmod in c# or not? Is yes, how to get started with it?

Coz at the moment i am using DirectSound. I heard fmod is quite good!

Any help, please!

Thank you.

Regards,
Chua Wen Ching :p

  • You must to post comments
0
0

[quote="asmcon":bk9cry1f]C++ is much more difficult to program in Microsoft Windows than other operating systems as you need to know so much about the OS.[/quote:bk9cry1f]
I think that needs some clarification. C++ is difficult to program on [b:bk9cry1f]ANY[/b:bk9cry1f] OS as you need to know so much about the OS [b:bk9cry1f]when you are writing a windowed application for that OS.[/b:bk9cry1f] If you are not writing a windowed application, ie. no GUI, then C++ is the same on every OS. If you are writing a windowed application, no matter whether it be for Windows, Linux (for X with GNOME, KDE, or any of the umpteen other windowed toolkits out there), BeOS, MacOS X, whatever, then you have to know a lot about the OS in order to create the application for that OS.

  • You must to post comments
0
0

I’m using SharpDevelop at the moment because it’s free. I cannot justify purchasing VS.NET at this stage.

I also like how you have kept more faithful to the original FMOD headers. :) Last night I started heading in the other direction (creating classes for streams and samples) in the name of experimentation.

  • You must to post comments
0
0

Hopefully whoever is doing the interface for .NET is not using Interop. I would suggest using Managed C++ to wrap FMOD. The performance degradation of Interop is pretty significant, especially for games.

Microsoft was going to use Interop for Managed DirectX initially but saw a 30% performance degradation. Changing to Managed C++ reduced the performance degradation to around 2%.

I am no expert on FMOD but I have wrapped quite a few C/C++ libraries with Managed C++. I will give it a try and see what I can come up with. The main hurdle is designing a good class structure for FMOD since it is all C based.

Rob

  • You must to post comments
0
0

If we want to interface to the FMOD DLL as it stands now, then it will never be managed code. The CIL runtime can not control what the DLL does, so it cannot manage that code.

  • You must to post comments
0
0

I had only converted what I needed to so far. So yes it is incomplete. fmoddyn.h does not need to be converted. fmod_errors.h will, but probably in a different way. The wincompat.h file is for Linux only I believe.

  • You must to post comments
0
0

I realize that this is an extremely old thread but did anything ever happen with the MS fmod wrapper?

Steve

  • You must to post comments
0
0

There is no publicly available assembly for use with C# just yet. At the moment, some of us have partial assemblies that are just wrappers around the FMOD DLL using P/Invoke.

  • You must to post comments
0
0

Absolutely fair enough, forgive me! ๐Ÿ˜‰

My programming experience has almost always been Windowed apps in MS Windows and all the backend stuff on various UNIX flavours or NT Server. I’ve never tried to program UI apps for X or Mac etc.

Has anyone got any more on Callbacks crashing on exit (I can make them fire OK).

Brett, I presume that you’re really busy, but .NET isn’t going to go away! Maybe some of the people in this forum can get together and build a good wrapper and get it released, with a little of your help?

The Callback thing might be quite easy to find as it happens constantly at least. My fear is that the solution could be somewhere in .NET though as there are many ways to wrap DLL functions / callbacks etc. Quite a lot to get to grips with.

  • You must to post comments
0
0

Hi Sly,

Back to your reply:
FMOD is not a COM component. To use FMOD from a .NET language, you must use the PInvoke mechanism (System.Runtime.InteropServices) to call unmanaged functions in DLLs from managed code. I have started wrapping the FMOD 3.63 functions into an assembly that can be used from any .NET language. It is nowhere near complete yet though.
–> I want to learn to write a wrapper for some dll!

So after thinking for a while, since i want to learn to write one, maybe i can write one for fmod. I want to see fmod power! Haha!

Okay, but since you already write a wapper in .net, can you show me some light! I know what to use, as you describe on top!

Do you willing to share the current source code with me? I want to see how actually the whole thing works? Maybe it might helpful for me to do some wrapper for other dll too!

Managed code with c++ or vb.net or c# – which one you used?

So it means that you are writing a wrapper with managed language, is it stable? I never write wrappers before, so no much experience!

Any help by sharing the source code of you existing wrapper? I hope it is not as hard i see!

Please!

Thanks.

Regards,
Chua Wen Ching :p

  • You must to post comments
0
0

How do you not use Interop when all you have is a DLL?

  • You must to post comments
0
0

He’s right, Brett. By “managed code,” Microsoft is essentially referring to garbage collection. Because fmod.dll is already compiled, and executables can’t be easily directly modified, .NET’s CLR can’t do garbage-collection on it, so unless a specific .NET (let’s say fmodnet.dll) port of FMOD is made, it’s going to be very tough to use FMOD as is in a .NET environment.

  • You must to post comments
0
0

Oh, why i never think of that!

I write a wrapper based on my needs!

Hmm.. i should look into the API and see what i need!

Hehe!

Thanks…

For the fmod_error… why you say i need to do a different approach?

Writing a wrapper had many ways?

Thanks for the help..

Regards,
Chua Wen Ching :p

  • You must to post comments
0
0

D’oh. How’d I miss that?

Thanks brett.

  • You must to post comments
0
0

Do you know where i can download those codes?

Maybe i can try with it?

Anyway doess fmod much much better over DirectSound! Coz if it is really that good, maybe i will focus more into fmod? Sorry as i off-topic abit.

Thanks.

Regards,
Chua Wen Ching :p

  • You must to post comments
0
0

Thanks Brett.

I’ll try it in C++ to be sure, but I think your’e right, I’m missing something in C#.NET.

If I found out what, I will let you all know ๐Ÿ˜€

  • You must to post comments
0
0

Wow, even Microsoft, a company that seems to like using proprietary technology, has taken note of FMOD? That’s surprising… then again, I guess it’s all in due time. Microsoft is now using Inno Setup, one of the best [b:1nt96nu1]completely free[/b:1nt96nu1] installation systems out there… wouldn’t it be something to see MS start using all third-party technologies?

  • You must to post comments
Showing 1 - 20 of 75 results
Your Answer

Please first to submit.