View Full Version : Ipc_changecurrentfile ?
hAmpzter
12th June 2002, 19:44
Hello there! :D
I'm developing a gen plugin for Winamp :winamp: !
But now I'm trying to have the program add a file to the playlist (no problem so far) and then play that file in the playlist (problem)...
I thougt that I could use the IPC_CHANGECURRENTFILE, but what is it I'm supposed to send with it.. The filename, the title, the number in the playlist?!? :cry:
Heeeeelp! :igor:
PS. Posted this in technical support, though I later realized that it was the wrong forum! DOH! :p DS.
Gourou
13th June 2002, 00:40
playlist position number, song 1 is 0, song 2 is 1, etc
hAmpzter
13th June 2002, 09:17
But when I try to play the last file in the list (that is what I want to do)..
I first get the playlist lenght with IPC_GETLISTLENGTH and then subtract 1 from it.. And then use IPC_CHANGECURRENTFILE and send that no with it.. But it won't work! My Winamp crashes when I do that.. :(
Gourou
13th June 2002, 13:53
if that is what your trying to achieve, then you need a different IPC...
IPC_SETPLAYLISTPOS
send the index to that and press play in winamp with another api and you should be all set.
hAmpzter
14th June 2002, 11:00
Yes, I use that today.. Without any good result.. :(
First I add the song to the list, then I check how long the list are and then I move the position in the list (with IPC_SETPLAYLISTPOS) and then I hit play... :rolleyes:
But when I do that, Winamp plays the first song in the list on the last songs place.. (The name of the last song becomes the same as the first song and that's the one that plays, though when I dubbelclick on that song in the playlist it becomes the the right one with both text and music)! :igor:
hAmpzter
14th June 2002, 12:03
Wieee! :D
I solved it now! Insted of using the "Advanced" features I used the WM_COMMAND options to do this!
I simply sent a command to go to the last item in playlist and then hit the play-button! :cool:
Thanx for your help anyway! :)
Gourou
14th June 2002, 15:07
I was just about to post to tell you to do that..
the wm_user version starts play at the beginning or naturally random spot in the playlist, just as if you opened it for the first time and hit play, with nothing selected.
hAmpzter
14th June 2002, 15:09
ahhh! okey! :)
that explains it! :D
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.