Announcement

Collapse
No announcement yet.

Sharpamp - Create Winamp plugins in C#, easily :D

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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:
    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);
    }

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

  • #2
    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?

    Comment


    • #3
      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.

      Comment


      • #4
        Hey!
        I Like it
        Hope, i can use it


        /Edit:
        I Hope i understand it right, can i use the .Net Dll in Visual Basic for "Remote" things?
        greetings

        Comment


        • #5
          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

          Comment


          • #6
            (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
            | WACUP Beta

            Projects: Big Bento Redux | CoverPlaying | Winamp Version Blocker/Locker | Winamp IntroLoader

            Comment

            Working...
            X