It is currently Mon Sep 06, 2010 9:54 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Winamp
PostPosted: Wed Dec 27, 2006 4:37 pm 
Plugin Developer

Joined: Sat Jul 22, 2006 3:37 pm
Posts: 64
Location: Australia
I have created a plugin which is a companion to the existing Winamp plugin.

Get it from here :-

http://eg.wolf359.cjb.net/plugins/winampex.zip

v1.0

adds a bunch of winamp stuff like :-
GetPlayingSongTitle()
GetRepeatStatus()
SetRepeatStatus()
ToggleRepeatStatus()
GetShuffleStatus()
SetShuffleStatus()
ToggleShuffleStatus()
GetVolume()
SetVolume()
GetSampleRate()
GetBitRate()
GetChannels()
GetPosition()
GetLength()
GetElapsed()
GetDuration()

I created this plugin out of necessity, I originally created all these in girders lua, a while ago, but now need them in EG so here they are.
I use them all for showing info on my serial VFD (SerialVFD plugin coming soon) on my mediabox when winamp is playing.

Matt.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 27, 2006 4:47 pm 
Site Admin
User avatar

Joined: Mon Feb 06, 2006 11:28 pm
Posts: 2236
Nice!

If you don't mind, I would like to add these actions to the old WinAmp plugin.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 12:16 am 
Plugin Developer

Joined: Sat Jul 22, 2006 3:37 pm
Posts: 64
Location: Australia
By all means, I have no problems with that. :)

Matt.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 30, 2006 5:57 pm 
Site Admin
User avatar

Joined: Mon Feb 06, 2006 11:28 pm
Posts: 2236
Ok, I have included them in 833. For shuffel and repeat I have merged the set, clear and toggle actions to one action with radiobox option. For some actions (like volume, elapsed and duration) I have changed the value type to floating point number.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 03, 2007 4:11 pm 
Plugin Developer

Joined: Sat Jul 22, 2006 3:37 pm
Posts: 64
Location: Australia
Excellent!

Wow, my name in lights! <blush>

Works well so far! :)

fixes for next release...

In Change Repeat Status :- 'Toogle Repeat' needs to be 'Toggle Repeat'
Same (as above) with shuffle

But wow, you have made some really nice gui enhancements in 836 (since 833)

Sweet!!!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 03, 2007 5:21 pm 
Site Admin
User avatar

Joined: Mon Feb 06, 2006 11:28 pm
Posts: 2236
thug wrote:
fixes for next release...

In Change Repeat Status :- 'Toogle Repeat' needs to be 'Toggle Repeat'
Same (as above) with shuffle

Will be fixed in the next beta.


Top
 Profile  
 
 Post subject: thread hijack
PostPosted: Fri Mar 30, 2007 8:26 pm 

Joined: Wed Mar 21, 2007 3:59 am
Posts: 11
pardon my thread hijack... but:

using the winamp plugin to grab a playing song's name, what's the best practice to monitor winamp if I want to, say, display the track name via OSD on track change? is it a bad practice to keep checking winamp and comparing the previous title to the new? is there a good way to grab an "on track change" trigger from winamp?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 31, 2007 4:07 pm 
Plugin Developer

Joined: Sat Jul 22, 2006 3:37 pm
Posts: 64
Location: Australia
I wouldn't say bad practice, obviously not the best, but until an easier method comes along we are all stuck with this one. :)

I use it, I use it every 250ms, so 4 times a second i get the new values.
It doesn't talk to winamp directly, it uses the winapi (GetWindowtText) to return the title of winamp's window and after some string manipulation you get the song title. ;)

One could write a dedicated winamp plugin (winamp dll) that eg interfaces to winamp with, I have seen them, girder has one, but it only sent an event every 1000ms (configured inside the winamp plugin), so your osd could be out by 1 second or so (me being a stickler for speedy updates i wasn't happy with that), and if girder crashed or exited then you had to restart winamp to get the plugin events working again.

EG's plugin is isolated, if winamp is running you get the values, if not then you don't, if eg stops / starts there is no need to restart winamp, you will get the value no matter what. :D


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 31, 2007 5:42 pm 

Joined: Wed Mar 21, 2007 3:59 am
Posts: 11
yeah... it kinda gives me the creeps to think about that process running 4 times a second, all day long. i'm probably over-reacting.

i'm going to experiment with this winamp plugin:

http://www.winamp.com/plugins/details.php?id=141842

[edit: now looking at:

http://www.winamp.com/plugins/details.php?id=138883
]

it writes to a text file whenever the track changes. it gets its formatting from another text file, so you can include whatever data you want.

then i'll set EG to watch the directory that this writes to. If I remember correctly, windows gives EG a call when the directories contents change. EG doesn't have to constantly watch it.

Maybe a little less overhead... maybe not...

the only prob i'm having with that plugin is that it doesn't seem to be writing the correct data when playback stops.

what would be NICE is if there was a plugin that calls a URL or sends a windows message on track change. but alas, i'm not a C programmer.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 31, 2007 6:05 pm 
Site Admin
User avatar

Joined: Mon Feb 06, 2006 11:28 pm
Posts: 2236
There is a plugin for Winamp that exposes many properties through ActiveX/COM:
http://www.myplugins.info/activewinamp.htm
It has event hooks for track changes. ActiveX can easily be handled with Python. As far as I'm concerned I'm not so interested in writing something for Winamp. But maybe someone else is willing to take the job.

_________________
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 31, 2007 6:38 pm 

Joined: Wed Mar 21, 2007 3:59 am
Posts: 11
i've got that 2nd plugin working OK for now:

http://www.winamp.com/plugins/details.php?id=138883

it makes an HTTP post with a form containing track status info.

it's not gonna be fast enough for thug's .25 second response time, but it's serving my needs. i'll keep an eye out for a notification plugin for winamp that's less of a duct-tape solution.


Top
 Profile  
 
 Post subject: Re: Winamp
PostPosted: Tue Jun 09, 2009 11:54 pm 

Joined: Wed May 20, 2009 12:10 am
Posts: 3
hi,
i have got a problem. How can i tell winamp to repeat just one song? (at the moment, "toggle repeat" turns on "repeat all" or "nothing")
mfg morph


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group