MMcM
October 13th, 2002, 12:55 PM
1. Do you want to poll for changes in the playlist and send them out asynchronously, or do you want to refresh the list on demand?
If the former, then events could be added to DVDSpy's Winamp plug-in to do this. Hopefully computing the payload periodically like that would not be too expensive even when the playlist gets long.
If, on the other hand, you want to get the list synchronously, it might make sense to do it another way. Using the SendMessage plug-in, send message 1024 (= 0x400 = WM_USER = WM_WM_IPC) with wParam 0 and an lParam 120 (= IPC_WRITEPLAYLIST) to a Target Class Name Winamp v1.x and Executable winamp.exe. Winamp will write c:\Program Files\Winamp\winamp.m3u, its persistent playlist representation. It's a text file with a header line and a couple of lines for each entry.
Once you have the playlist in some form, do you intend to parse it on the PDA side? If so, then Winamp's format may be good enough. Then you just need something in GVMS or the Serial plug-in to load a text file into a variable or to send a file out the serial connection straight. Either of those might be generally useful.
2. Winamp does not give its plug-ins access to this information. At least not last time I looked. I think that the expectation is that given the .mp3 filename, they could parse the tags themselves. With that understanding, I've always imagined that the right way to do this is to have a plug-in that takes the name of a file in a variable and puts ID3 info in other variables. Internally, it would use one of the several open source ID3 libraries. That said, I haven't actually written any such thing.
(In the same vein, I've always imagined that there could be a plug-in to get MBM info or check mail with simple MAPI and route them from event payloads to the LCD plug-in, rather than having this built-in like in LCDC. But I haven't done that either. :wink: )
If the former, then events could be added to DVDSpy's Winamp plug-in to do this. Hopefully computing the payload periodically like that would not be too expensive even when the playlist gets long.
If, on the other hand, you want to get the list synchronously, it might make sense to do it another way. Using the SendMessage plug-in, send message 1024 (= 0x400 = WM_USER = WM_WM_IPC) with wParam 0 and an lParam 120 (= IPC_WRITEPLAYLIST) to a Target Class Name Winamp v1.x and Executable winamp.exe. Winamp will write c:\Program Files\Winamp\winamp.m3u, its persistent playlist representation. It's a text file with a header line and a couple of lines for each entry.
Once you have the playlist in some form, do you intend to parse it on the PDA side? If so, then Winamp's format may be good enough. Then you just need something in GVMS or the Serial plug-in to load a text file into a variable or to send a file out the serial connection straight. Either of those might be generally useful.
2. Winamp does not give its plug-ins access to this information. At least not last time I looked. I think that the expectation is that given the .mp3 filename, they could parse the tags themselves. With that understanding, I've always imagined that the right way to do this is to have a plug-in that takes the name of a file in a variable and puts ID3 info in other variables. Internally, it would use one of the several open source ID3 libraries. That said, I haven't actually written any such thing.
(In the same vein, I've always imagined that there could be a plug-in to get MBM info or check mail with simple MAPI and route them from event payloads to the LCD plug-in, rather than having this built-in like in LCDC. But I haven't done that either. :wink: )