Hey everyone
I've been working on this for a while, and I think it's finally in a usable beta state. Basically, Sharpamp is a combination of a .NET library for accessing Winamp, and a C# template for Visual Studio, allowing you to easily create Winamp plugins in C#. C# doesn't let you make "normal" DLLs, so a small C++ wrapper is needed, but it is included in the template (and most of the time, you won't have to edit it or anything).
Take a look, and tell me what you think: code.google.com/p/sharpamp/. Be sure to read the getting started guide at code.google.com/p/sharpamp/wiki/GettingStarted, as it explains some important details.
I think one of the best things is how simple it is to handle song changes. No need to mess around with sending messages or anything. Sharpamp simply uses standard C# events, so you can do something like this:
[img]http://ss.d15*****sharpcast-HelloWorldGUI.png[/img]
Something like this is very simple to create.
Please report any bugs! In particular, I've only tested it on Windows 7 64-bit, and Windows XP 32-bit. I'd like to know people's experiences with Sharpamp on Vista, as well as with Visual Studio versions other than 2008 (2005 or 2010 beta, for example).
Enjoy!
I've been working on this for a while, and I think it's finally in a usable beta state. Basically, Sharpamp is a combination of a .NET library for accessing Winamp, and a C# template for Visual Studio, allowing you to easily create Winamp plugins in C#. C# doesn't let you make "normal" DLLs, so a small C++ wrapper is needed, but it is included in the template (and most of the time, you won't have to edit it or anything).
Take a look, and tell me what you think: code.google.com/p/sharpamp/. Be sure to read the getting started guide at code.google.com/p/sharpamp/wiki/GettingStarted, as it explains some important details.
I think one of the best things is how simple it is to handle song changes. No need to mess around with sending messages or anything. Sharpamp simply uses standard C# events, so you can do something like this:
A GUI sample plugin is included, that looks like:code:
// In the initialise function:
Winamp.SongChanged += SongChanged;
// And elsewhere in the class:
private void Winamp_SongChanged(object sender, Daniel15.Sharpamp.SongChangedEventArgs e)
{
MessageBox.Show("The song changed to " + e.Song.Title);
}
[img]http://ss.d15*****sharpcast-HelloWorldGUI.png[/img]
Something like this is very simple to create.

Please report any bugs! In particular, I've only tested it on Windows 7 64-bit, and Windows XP 32-bit. I'd like to know people's experiences with Sharpamp on Vista, as well as with Visual Studio versions other than 2008 (2005 or 2010 beta, for example).
Enjoy!

Comment