PDA

View Full Version : Playlist


CronusPhoenix
13th June 2007, 19:50
Okay hello everyone,

I was wondering if anyone could take the time to answer a couple questions I have.

1) Is there a way of queuing a file in a playlist by jump to file (Q)?

2) How can I find the id of a song in the playlist by either the filename, or song name? Or would I have to loop through the entire playlist?

3) How can I enqueue a file that is not in the current playlist?

Thanks,

CronusPhoenix

DrO
14th June 2007, 12:12
1) i've never really sorted out a public api for that so i'm going to say not at the moment (can't even remember what i've got available as an external api at the moment)

2) is basically a loop through the playlist or if you're doing a mouse-click action then there's a idxfrompoint api in ipc_pe.h or there's a getselecteditem api if you're working with a selection (needs 5.2+ - can't remember the exact version but is in wa_ipc.h)

3) use ipc_enqueuefile

-daz

CronusPhoenix
14th June 2007, 19:32
Thanks, Very helpful

For problem number 1, I hooked the event winamp sends when the music file finishes playing and just selected and ran my own song that I wanted "queued".