Help - Search - Members - Calendar
Full Version: C# components?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
Nickoladze
Is it possible to write Foobar2000 components in other programming languages like C#? I don't really know C++, and I'd love if it was possible to write them in a language I'm familiar with.
foosion
Short answer: No.

Long answer: While it is possible to write components in other languages than C++, this requires a wrapper. As far as I know, there is no generic wrapper for .NET components. Writing one requires a certain level of understanding of the foobar2000 SDK as well as C++/CLI.
Nickoladze
I did notice the Java wrapper, I'm fairly good with Java as well. I might give that a shot.
bubbleguuum
QUOTE(Nickoladze @ May 30 2008, 13:46) *

I did notice the Java wrapper, I'm fairly good with Java as well. I might give that a shot.


I wouldn't recommend it as it is very incomplete in covering the SDK APIs. Except if you have the will and knowledge to extend it, which is not super easy. It'd be useful though if your plugin has a complex UI, as you could use Swing, much cleaner and modern than old Win32 UI APIs. What kind of plugin do you want to make ?

IIRC, On the C# front there's foo_title with a C# wrapper, I think the source is available. But I don't think it's complete either in the coverage of APIs.

Nickoladze
I was hoping to make a panel, UI, or just a separate program in C# and uses foobar to play the songs, I found an old component for doing just that and I've emailed the author about it.
~*McoreD*~
QUOTE(Nickoladze @ May 30 2008, 19:46) *

I did notice the Java wrapper, I'm fairly good with Java as well. I might give that a shot.


I am really really interested in this too.

Album Art Downloader XUI has some kind of foobar2000 integration using C#
http://www.hydrogenaudio.org/forums/index....showtopic=57392

I tried fiddling around with the Interop.Foobar2000.dll that comes with it but didn't have much luck with it.
Quiark
Strange how foo_title has vanished from people's minds smile.gif This component is written in C# and it uses a wrapper library. And the code is LGPL and available. However, as you guessed, the wrapper is incomplete wink.gif And has some problems under Vista sad.gif
~*McoreD*~
Quiark, looking at

http://foo-title.svn.sourceforge.net/viewvc/foo-title/

Thanks!
chaosblade
Doing the same. I've had an idea for a plugin that hooks some DirectInput keyboard presses to allow for ingame hotkeys for foobar actions, And an example of a managed plugin would be handy.
Nickoladze
I looked through the wrappers from both, and neither is all that good.

oh well
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.