Author Topic: Winamp media library plugin  (Read 6573 times)

Mincus

  • Hero Member
  • *****
  • Posts: 2433
    • View Profile
Winamp media library plugin
« on: April 01, 2009, 05:09:18 pm »
Quite simple, just copy this DLL to C:\Program Files\Winamp\Plugins (or wherever your WinAMP installation is, will be Program Files (x86) under 64-bit versions of Windows)

Just adds a list of characters to your "Send to" menu whenever you right-click on a song in WinAMP.

Currently Audiosurf needs to be running before the song will start, I'll remedy that shortly.
Will now start Audiosurf for you. However I think there's a bug in the quickstartcommand command that causes Audiosurf to repeatedly try and play the song. I can't really fix this without registering a window etc, etc and I want to keep this plugin as simple as possible.

If there's interest I will add an options dialog that runs to fullscreen on song start and allows you to choose which characters are in the sendto menu, but only if people ask for it. :P

Source code and picture added. Feel free to do as you wish with the source.
To compile the source you will need the WinAMP SDK (http://dev.winamp.com/wiki/Plug-in_Developer#SDK_Documentation), put the "winamp" and "gen_ml" directories that installs in ml_audiosurfstarter's directory (yes, I know I should mess about with include directories, feel free to do that if you wish).

The ml_audiosurfstarter-static.dll file has the MSVC runtime compiled in, if the original DLL doesn't work, use this one instead (remember to delete the original!)

Final note: This plugin is 100% Unicode compatible. :)
« Last Edit: April 01, 2009, 09:20:48 pm by Mincus »

ViRUS

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3218
    • MSN Messenger - newvirus@live.com.ar
    • View Profile
    • Email
Re: Winamp media library plugin
« Reply #1 on: April 01, 2009, 06:50:08 pm »
Do one for foobar2000 and I'll love you forever :D


Mincus

  • Hero Member
  • *****
  • Posts: 2433
    • View Profile
Re: Winamp media library plugin
« Reply #2 on: April 01, 2009, 07:00:07 pm »
Do one for foobar2000 and I'll love you forever :D
Doesn't http://www.audio-surf.com/forum/index.php/topic,2891.0.html do it?
I don't use foobar2000 myself so haven't checked it.

ViRUS

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3218
    • MSN Messenger - newvirus@live.com.ar
    • View Profile
    • Email
Re: Winamp media library plugin
« Reply #3 on: April 01, 2009, 07:10:11 pm »
Yeah, but you have to install Python... Too much of a hassle for a single addon, so a .dll would just do the trick ;)


Passerby

  • Hero Member
  • *****
  • Posts: 1534
    • View Profile
Re: Winamp media library plugin
« Reply #4 on: April 01, 2009, 07:49:55 pm »
nice job if possible it would be nice to give it it's own submenu and allow you to add tags like as-steep which is what im trying to do with my amarok 2 one right now

fergtm

  • Full Member
  • ***
  • Posts: 170
    • View Profile
    • Steam ID
Re: Winamp media library plugin
« Reply #5 on: April 01, 2009, 08:10:01 pm »
Thanks for this addon. I was waiting for something like this. One small suggestion, could you compile it with the c++ runtime statically linked a lot of machines don't have MSVCR90.DLL


Mincus

  • Hero Member
  • *****
  • Posts: 2433
    • View Profile
Re: Winamp media library plugin
« Reply #6 on: April 01, 2009, 09:25:14 pm »
Thanks for this addon. I was waiting for something like this. One small suggestion, could you compile it with the c++ runtime statically linked a lot of machines don't have MSVCR90.DLL

Added it as the -static DLL.

Mincus

  • Hero Member
  • *****
  • Posts: 2433
    • View Profile
Re: Winamp media library plugin
« Reply #7 on: April 01, 2009, 09:39:01 pm »
Do one for foobar2000 and I'll love you forever :D

Ok, I've looked through the foobar2000 SDK, it looks pretty complex. That is, it's written properly instead of the half-arsed attempt WinAMP has. ;)

I'm not promising anything but I'll have a play when I've slept a bit. I've already done the hard work on the Audiosurf side with the WinAMP plugin, so it's just working out the foobar2000 stuff.

Edit: Really struggling to get the foobar2000 SDK to behave. It's dependency hell. I might just edit the example plugin to make it do what I want, but even then I'm not really sure where to start.
Whereas WinAMP is overly minimalistic, foobar2000 looks to be overly complicated. Can't win. :P
« Last Edit: April 02, 2009, 04:06:52 am by Mincus »

lavacano201014

  • Hero Member
  • *****
  • Posts: 1762
  • We're an underground revolution working overtime.
    • ICQ Messenger - 431938899
    • MSN Messenger - thatotherguy370@msn.com
    • AOL Instant Messenger - lavacano201014
    • Yahoo Instant Messenger - lavacano201014
    • View Profile
    • Email
Re: Winamp media library plugin
« Reply #8 on: April 02, 2009, 01:10:56 pm »
the half-arsed attempt WinAMP has. ;)

Last I checked, Nullsoft (the company that made WinAMP) got bought by AOL, which of course sucks.

I could be thinking ShoutCast, though.

Green = listening, red = surfing

Mincus

  • Hero Member
  • *****
  • Posts: 2433
    • View Profile
Re: Winamp media library plugin
« Reply #9 on: April 02, 2009, 01:20:05 pm »
the half-arsed attempt WinAMP has. ;)

Last I checked, Nullsoft (the company that made WinAMP) got bought by AOL, which of course sucks.

I could be thinking ShoutCast, though.

No, you're right, they bought it around the time v3 came out iirc.
Then the entire nullsoft team slowly trickled away with the last one leaving around 2004 I think it was.

I was more making a point that it's a very simplistic API (only a handful of basic functions, no real way to do something even as simple as grab the current song info properly without writing a media library plugin instead of a "general purpose" plugin), it's a bit of a mess really.