Winamp Plugin teaser

14 views
Skip to first unread message

Brian Dunnington

unread,
Nov 20, 2009, 3:15:19 PM11/20/09
to growl for windows
Lots of new users lately with the release of v2.0 and lots more
requests for apps support. once of the most-requested is Winamp, so i
decided to dive into it even though my C++ abilities are almost
non-existent. using Daniel's Foobar2000 code and a bunch of other
examples from the internet as a starting point, i got something
working. it supports UTF8 characters and seems to work pretty good in
my limited testing. it doesnt yet include the album art, but i am
working on it.

if anybody would like to take this code as a starting point and clean
it up, you are more than welcome. i dont use Winamp, but i know a lot
of folks do, so maybe somebody out there would like to own this.
winamp_teaser.jpg

Daniel Dimovski

unread,
Nov 20, 2009, 3:30:01 PM11/20/09
to growl for windows
Pretty much all my code is Foobar specific..
so I suppose the code you're reffering to is mattn's code that I'm
using... :)
http://github.com/mattn/gntp-send

Good job though.. don't see how you are able to spend so much time
developing everything as quickly as you do.. ;)
>  winamp_teaser.jpg
> 17KVisaHämta

Brian Dunnington

unread,
Nov 20, 2009, 3:44:35 PM11/20/09
to growl-fo...@googlegroups.com
yeah, i guess most of the code i used was from MattN's gntp-send.h,
but a bunch of stuff pointed me in the right direction. thanks for
making your source available.

as for developing stuff - i just enjoy doing it so i keep looking for
new things to tackle.
> --
>
> You received this message because you are subscribed to the Google Groups "growl for windows" group.
> To post to this group, send email to growl-fo...@googlegroups.com.
> To unsubscribe from this group, send email to growl-for-wind...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/growl-for-windows?hl=.
>
>
>

Brian Dunnington

unread,
Nov 20, 2009, 7:08:21 PM11/20/09
to growl-fo...@googlegroups.com
ok - here is a first pass at a Growl/Winamp plugin. it supports UTF8
characters and album art, at least on my machine =) the only
supported notification type is 'Playback Started'.

to use it:

1. close Winamp
2. unzip the contents of gen_growl.zip to your Winamp plugins folder
(ex: C:\Program Files\Winamp\Plugins)
3. restart Winamp

for those of you that use Winamp, please give it a try and report your
results. i only tried this with the latest Winamp (v5.56) and i dont
think it has any other dependencies, but your mileage may vary.

Credit also has to go to the following people for doing most of the
hard work that i was able to use as a guide:

George Slavov's Winamp Snarl plugin
http://georgeslavov.com/snarl-plugin-for-winamp/
[Public Domain]

MattN's C++ GNTP class
http://github.com/mattn/gntp-send
[No license specified]
gen_growl.zip
winamp_notification.png

Laurent Laville

unread,
Nov 21, 2009, 6:45:55 AM11/21/09
to growl-fo...@googlegroups.com
Hello Brian,

I like this teaser. I've tried it and here are my first feedback.

I used the final version 2.0 of Growl (2.0.0.25) with the gen_growl.zip archive attached in your post, and Winamp 5.56 on WinXP SP3

FIRST:

I've listen at least 3 albums on my local disk with "Winamp / Play Folder" option.
While I listen them, I saw notification on each new song with the right album cover.

But here is my surprise when, I go on Growl History Tab, and this

The same cover album (first I've listen was Amy McDonald) on all song notifications. Second album was Amy Winehouse .

So I've decided to have a look on my local settings
C:\Documents and Settings\crossbow\Local Settings\Application Data\Growl\2.0.0.0

No trace of album cover into  Resources sub-dir, while I got all notification files into
C:\Documents and Settings\crossbow\Local Settings\Application Data\Growl\2.0.0.0\History\Winamp

Perharps you can explain this mystery ?!

SECOND:
I  like to have the position of song on notification, if possible, when playing a playlist or full album.

Laurent


2009/11/21 Brian Dunnington <briandu...@gmail.com>
growl_winamp.PNG

Brian Dunnington

unread,
Nov 21, 2009, 8:47:59 PM11/21/09
to growl-fo...@googlegroups.com
i think i know the problem. the artwork is saved each time to the same
file name (something like artwork.bmp or something) and overwrites the
previous file. however, the history must be incorrectly referencing
the file (instead of saving the image data separately). i will put in
a fix and re-release it on monday.

as for the data that is included in the notification, i will probably
change it to allow you specify which information you want to include
(artist, album, song name, track number, rating, duration, etc). that
way, it will be flexible for everyone's diverse needs.

thanks for the feedback. let me know if you find anything else.

FlyingSaucrDude

unread,
Nov 22, 2009, 4:57:16 PM11/22/09
to growl for windows
Is the source code for the plugin available? I'd love to take a look
and see if I can implement message customization...

On Nov 21, 5:47 pm, Brian Dunnington <briandunning...@gmail.com>
wrote:
> i think i know the problem. the artwork is saved each time to the same
> file name (something like artwork.bmp or something) and overwrites the
> previous file. however, the history must be incorrectly referencing
> the file (instead of saving the image data separately). i will put in
> a fix and re-release it on monday.
>
> as for the data that is included in the notification, i will probably
> change it to allow you specify which information you want to include
> (artist, album, song name, track number, rating, duration, etc). that
> way, it will be flexible for everyone's diverse needs.
>
> thanks for the feedback. let me know if you find anything else.
>
> On Sat, Nov 21, 2009 at 3:45 AM, Laurent Laville
>
> > 2009/11/21 Brian Dunnington <briandunning...@gmail.com>

Brian Dunnington

unread,
Nov 23, 2009, 12:16:32 PM11/23/09
to growl-fo...@googlegroups.com
i will post the source code this morning and then reply here with the
link. that would be great if you wanted to dive into it and improve
it.

Brian Dunnington

unread,
Nov 23, 2009, 1:00:02 PM11/23/09
to growl-fo...@googlegroups.com
here is the link to the source for the Winamp plugin:

http://code.google.com/p/growl-for-windows/source/browse/#svn/trunk/Growl%20Extras/Winamp%20Plugin

cant wait to see what you can do to improve it - it is currently just
kind of down and dirty to get the job done.

also - for anyone that hard already downloaded the plugin, here is a
new version. this version fixes the album art problem that Laurent
reported. please give it a let me know if it solves the problem for
you.
gen_growl.zip

Laurent Laville

unread,
Nov 23, 2009, 5:01:38 PM11/23/09
to growl-fo...@googlegroups.com
Brian,

I confirm that this new version solve the problem for me


2009/11/23 Brian Dunnington <briandu...@gmail.com>

Brian Dunnington

unread,
Nov 23, 2009, 5:18:21 PM11/23/09
to growl-fo...@googlegroups.com
great! thanks for letting me know.

Laurent Laville

unread,
Nov 23, 2009, 5:18:47 PM11/23/09
to growl-fo...@googlegroups.com
Brian,

The new version solve the previous cover albulm problem, but introduced new bugs.

When, I go on main tab (application list) I saw that Winamp lost its icon.
So I've decided to remove application (to force registration again), and then I get back the good winamp icon... But until I change the display from default to another one (example Smokestack on screenshot).

Here are step to produce error
1. remove previous winamp application
2. play a song (that force the registration)
3. while song1 is playing go to winamp all notifications / display and change value from default to another choice
4. wait song1 finish or stop it and play another song2
5. click on "Playback Started" on you got the screenshot "winamp_lost_icon2"  ( Notice that main application icon is not lost , but notification types YES)
6. click on another application, and go back on winamp : you lose all icons


Strange behavior / nasty bug !



2009/11/23 Brian Dunnington <briandu...@gmail.com>
winamp_lost_icon.PNG
winamp_lost_icon2.PNG

Laurent Laville

unread,
Nov 23, 2009, 5:26:20 PM11/23/09
to growl-fo...@googlegroups.com
It seems that there are also some others conditions that lose winamp application / notifications types icons

With previous version I didn't noticed it !


2009/11/23 Laurent Laville <laurent...@gmail.com>

Brian Dunnington

unread,
Nov 24, 2009, 11:27:01 AM11/24/09
to growl-fo...@googlegroups.com
i found the bug and fixed it. i tested it with several scenarios and
the application icon stayed correct, so hopefully it is fixed for you
as well.

the new version is available here:
http://www.growlforwindows.com/gfw/plugins/winamp

please let me know how it works for you.

PzyCotix

unread,
Nov 24, 2009, 12:33:41 PM11/24/09
to growl for windows
A small off-track here..
But your Winampplugin almost works with Mediamonkey. (mediamonkey
actually supports winamp 2 plugins). I tested it out, and the plug
registers in mediamonkey. There is however no configurable settings
for MM to change.

MM would not register with Growl.

Another "bug" (it's probably more of an incompatibility) is that after
you try to access the plugins options (and get informed that the
plugin has no configurable options) MM's settingswindows locks and
cannot be closed.

I'm just informing of the results of a small experiment, and making
the winamp-plugin Mediamonkey (winamp2) compliant is quite nescesary
since we already have a workaround for mediamonkey :)

ianmm

On Nov 24, 5:27 pm, Brian Dunnington <briandunning...@gmail.com>
wrote:
> i found the bug and fixed it. i tested it with several scenarios and
> the application icon stayed correct, so hopefully it is fixed for you
> as well.
>
> the new version is available here:http://www.growlforwindows.com/gfw/plugins/winamp
>
> please let me know how it works for you.
>
> On Mon, Nov 23, 2009 at 2:26 PM, Laurent Laville
>
> <laurent.lavi...@gmail.com> wrote:
> > It seems that there are also some others conditions that lose winamp
> > application / notifications types icons
>
> > With previous version I didn't noticed it !
>
> > 2009/11/23 Laurent Laville <laurent.lavi...@gmail.com>
>
> >> Brian,
>
> >> The new version solve the previous cover albulm problem, but introduced
> >> new bugs.
>
> >> When, I go on main tab (application list) I saw that Winamp lost its icon.
> >> So I've decided to remove application (to force registration again), and
> >> then I get back the good winamp icon... But until I change the display from
> >> default to another one (example Smokestack on screenshot).
>
> >> Here are step to produce error
> >> 1. remove previous winamp application
> >> 2. play a song (that force the registration)
> >> 3. while song1 is playing go to winamp all notifications / display and
> >> change value from default to another choice
> >> 4. wait song1 finish or stop it and play another song2
> >> 5. click on "Playback Started" on you got the screenshot
> >> "winamp_lost_icon2"  ( Notice that main application icon is not lost , but
> >> notification types YES)
> >> 6. click on another application, and go back on winamp : you lose all
> >> icons
>
> >> Strange behavior / nasty bug !
>
> >> 2009/11/23 Brian Dunnington <briandunning...@gmail.com>
>
> >>> here is the link to the source for the Winamp plugin:
>
> >>>http://code.google.com/p/growl-for-windows/source/browse/#svn/trunk/G...
>
> >>> cant wait to see what you can do to improve it - it is currently just
> >>> kind of down and dirty to get the job done.
>
> >>> also - for anyone that hard already downloaded the plugin, here is a
> >>> new version. this version fixes the album art problem that Laurent
> >>> reported. please give it a let me know if it solves the problem for
> >>> you.
>
> >>> On Mon, Nov 23, 2009 at 9:16 AM, Brian Dunnington
> >>> <briandunning...@gmail.com> wrote:
> >>> > i will post the source code this morning and then reply here with the
> >>> > link. that would be great if you wanted to dive into it and improve
> >>> > it.
>
> >>> > On Sun, Nov 22, 2009 at 1:57 PM, FlyingSaucrDude <jgill...@gmail.com>

Laurent Laville

unread,
Nov 24, 2009, 2:31:26 PM11/24/09
to growl-fo...@googlegroups.com
Nice Work Brian,

It fixed all context problems I've previously found !

Laurent

2009/11/24 Brian Dunnington <briandu...@gmail.com>
For more options, visit this group at http://groups.google.com/group/growl-for-windows?hl=en.



PzyCotix

unread,
Nov 24, 2009, 2:45:00 PM11/24/09
to growl for windows
Err. Memo to self. Remember to proofread before send..

"compliant is quite nescesary " should be "compliant is not quite
nescesary"

Brian Dunnington

unread,
Nov 24, 2009, 2:51:49 PM11/24/09
to growl-fo...@googlegroups.com
=) that is what i figured.

the plugin is very simplistic, so it probably could be made to work
with the Winamp 2 plugin architecture. if anybody wants to tackle it,
the source code is available in the GfW Google Code project.
> For more options, visit this group at http://groups.google.com/group/growl-for-windows?hl=en.
>
>
>

George

unread,
Dec 10, 2009, 12:30:59 AM12/10/09
to growl for windows
Hello to everyone here! I am the guy who wrote the winamp plugin for
snarl whose code was used in this project. I haven't looked at the
code for the Growl plugin, but I can tell you that my version uses
Winamp 5 features in order to extract album art. Getting song artist
and title only requires Winamp 2, but that version of Winamp doesn't
have support for album art at all. Hence, if you were to get it
working for Winamp 2 you would lose artwork. I imagine MediaMonkey has
its own API for getting artwork, so you'll have to branch the code in
order to deal with this difference. I will be watching this thread in
the hope that someone figures it out. It would be nice to backport
your work to my Snarl plugin. ;)

Cheers,
George

On Nov 24, 2:51 pm, Brian Dunnington <briandunning...@gmail.com>
> ...
>
> read more »

PzyCotix

unread,
Dec 10, 2009, 4:38:13 AM12/10/09
to growl for windows
Hi again..
According to thios page: http://psyker7.mediamonkey.com/wiki/index.php/Plug-ins
MM also supports winamp5 plugins to a certain degree.

MM do not however support Winamp Languagepack or medialibrary
functionality in winamp plugins. I guess album art goes under Winamp
Media Library functions.

After a quick search on the MM site I get the distinct impression that
MM usees scripts for natvie addons, and therefore only upports Winamp
2, and 5 plugins only to a certain degree.

There do exist a script for MM already (http://www.mediamonkey.com/
forum/viewtopic.php?f=2&t=43827), so again it seems getting a
winampplugin working for MM is kinda redunant and unnescesary. It
would possibly only be a fun little challenge for anyone wanting to do
so:)

Ian
> ...
>
> les mer »

Laurent Laville

unread,
Dec 29, 2009, 1:22:29 PM12/29/09
to growl-fo...@googlegroups.com
Hi Brian,

It seems the bug is back with final version of Growl 2.0.1 (2.0.027) : Lost icons in Winamp plugin !

Here are the proof in image




2009/11/24 Brian Dunnington <briandu...@gmail.com>
For more options, visit this group at http://groups.google.com/group/growl-for-windows?hl=en.



lost_icon.PNG

Brian Dunnington

unread,
Jan 5, 2010, 4:07:38 PM1/5/10
to growl-fo...@googlegroups.com
the Winamp plugin still had a bug in it. thanks to another GfW user
that provided the solution, i just uploaded an updated plugin that
seems to work properly for me:

http://www.growlforwindows.com/gfw/plugins/winamp

try it out and see if it solves the problem for you as well.

Laurent Laville

unread,
Jan 7, 2010, 3:02:50 PM1/7/10
to growl-fo...@googlegroups.com
The new version solves the problem for me too !
Thanks


2010/1/5 Brian Dunnington <briandu...@gmail.com>
Reply all
Reply to author
Forward
0 new messages