Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 29th December 2010, 11:56   #1
martinyyyy
Junior Member
 
Join Date: Dec 2010
Posts: 7
api_queue & C#

Hi there,

I'm writing a small server app in C# which is controlling Winamp. I used WACC until now, but I would like to use jfte and the queue, but the jfte SDK is completely useless for me because it uses WASABI and stuff.. is there any other way to communicate with the plugin?

Like with winamp itself with SendMessage?
martinyyyy is offline   Reply With Quote
Old 29th December 2010, 12:09   #2
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,275
there was a sendmessage based api with the plug-in though i only officially support the wasabi based setup now and basically moved all of my own handling over to it inside the plug-in. some parts might still work but until i can check the jtfe source code there's not too much i can offer on such things (am snowed under with work at the moment so won't be for another week or so until i can check things).

-daz
DrO is offline   Reply With Quote
Old 29th December 2010, 12:26   #3
martinyyyy
Junior Member
 
Join Date: Dec 2010
Posts: 7
Ohh allright.. only thing I need to know is what songs are in the queue. Would be awesome if you can tell me if this possible!

(I think queuing songs and stuff can be achieved by a workaround without the need of an API)
martinyyyy is offline   Reply With Quote
Old 29th December 2010, 12:45   #4
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,275
Quote:
Originally Posted by martinyyyy View Post
Ohh allright.. only thing I need to know is what songs are in the queue.
i know it's viable with the api_queue interface though at the moment i don't remember exposing it via a sendmessage interface

Quote:
Originally Posted by martinyyyy View Post
I think queuing songs and stuff can be achieved by a workaround without the need of an API
that does sort of defeat the whole point of the api though maybe i should have made a more formal old style interface but with the wasabi services being the general way newer apis are done in Winamp it made more sense for me to go that way. guess i can never win *shrugs*

-daz
DrO is offline   Reply With Quote
Old 29th December 2010, 13:46   #5
martinyyyy
Junior Member
 
Join Date: Dec 2010
Posts: 7


with "a workaround" a meant selecting a song in the playlist with the normal winamp functions and then sending the Q key to the app.. very *dirty* but should do the job.

Could u link me the SendMessage API and I maybe I can mess around a bit and find something usefull for me.
martinyyyy is offline   Reply With Quote
Old 29th December 2010, 13:49   #6
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,275
Quote:
Originally Posted by martinyyyy View Post
with "a workaround" a meant selecting a song in the playlist with the normal winamp functions and then sending the Q key to the app.. very *dirty* but should do the job.
that's been tried a few times from what i remember and it never quite worked properly as there's no real way to select an item in the playlist editor (unless you're faking mouse clicks, etc which is just going a bit too far).

Quote:
Originally Posted by martinyyyy View Post
Could u link me the SendMessage API and I maybe I can mess around a bit and find something usefull for me.
i'll post back when i've had a chance to look at the source code but it's going to be at least a week before i can find the time to look through that.

-daz
DrO is offline   Reply With Quote
Old 29th December 2010, 14:26   #7
martinyyyy
Junior Member
 
Join Date: Dec 2010
Posts: 7
Quote:
Originally Posted by DrO View Post
that's been tried a few times from what i remember and it never quite worked properly as there's no real way to select an item in the playlist editor (unless you're faking mouse clicks, etc which is just going a bit too far).
Oh u are right.. I thought it works with
code:
IPC_SETPLAYLISTPOS = 121
but well.. it selects a track but not in the same way like a user does with the mouse.

Quote:
Originally Posted by DrO View Post
i'll post back when i've had a chance to look at the source code but it's going to be at least a week before i can find the time to look through that.
would be awesome! thanks
martinyyyy is offline   Reply With Quote
Old 18th April 2011, 09:33   #8
martinyyyy
Junior Member
 
Join Date: Dec 2010
Posts: 7
any news?
martinyyyy is offline   Reply With Quote
Old 18th April 2011, 09:42   #9
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,275
nope and the way it's looking i'm just not able to give a time scale now for even trying to look at the source / sorting something out (is the fun of work vs freetime projects).

-daz
DrO is offline   Reply With Quote
Old 26th July 2012, 16:57   #10
martinyyyy
Junior Member
 
Join Date: Dec 2010
Posts: 7
Quote:
Originally Posted by DrO View Post
nope and the way it's looking i'm just not able to give a time scale now for even trying to look at the source / sorting something out (is the fun of work vs freetime projects).

-daz
Just curious, did you find some time to look at the source?
martinyyyy is offline   Reply With Quote
Old 26th July 2012, 17:13   #11
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,275
(had forgotten about this thread). there's not a SendMessage(..) way to get the items from the queue, is purely via the wasabi api_queue method.

-daz
DrO is offline   Reply With Quote
Reply
Go Back   Winamp 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