Old 29th November 2009, 09:54   #1
Junior Member
Join Date: Dec 2008
Location: Melbourne, Australia
Posts: 13
Sharpamp - Create Winamp plugins in C#, easily :D

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:

// 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);

A GUI sample plugin is included, that looks like:
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).

Daniel15 is offline   Reply With Quote
Old 30th November 2009, 10:38   #2
Junior Member
Join Date: Nov 2009
Posts: 5
this is great, and btw seems to work with windows 7 64 and visual studio 2010 beta 2.. anyway how do I extract the current song's playcount and rating?
tsunder3 is offline   Reply With Quote
Old 30th November 2009, 14:05   #3
Junior Member
Join Date: Dec 2008
Location: Melbourne, Australia
Posts: 13
There's no method to get the playcount and ratings just yet... Maybe in a future version
This release is just a very simple one, I'll work on adding more functionality in the future.
Daniel15 is offline   Reply With Quote
Old 5th December 2009, 13:10   #4
Junior Member
Join Date: Dec 2009
Posts: 37
I Like it
Hope, i can use it

I Hope i understand it right, can i use the .Net Dll in Visual Basic for "Remote" things?
Tsuyo is offline   Reply With Quote
Old 23rd January 2010, 10:01   #5
Junior Member
Join Date: Dec 2008
Location: Melbourne, Australia
Posts: 13
Sorry for the delay in replying. You could try it... But a lot of the stuff would only work in Winamp plugins, not in normal programs. Plugins are loaded directly into Winamp, so they can do more stuff to control it.

You could write a Winamp plugin in Visual Basic .NET, you'd just have to write the class yourself. It wouldn't be too hard
Daniel15 is offline   Reply With Quote
Old 16th June 2022, 12:13   #6
Senior Member
ChocolateAdventurouz's Avatar
Join Date: Oct 2021
Location: In a solar system
Posts: 164
(Sorry for the post pumping)
Llamas, there is great news!
Daniel15 told me to port the project to newer versions of Visual Studio and fix some bugs. I am trying to add some new features as well!

Pull requests I made:

The Visual Studio 2022 port is under maintenance.

P.S Sorry for the post pumping again
ChocolateAdventurouz is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump