Go Back   Winamp Forums > Winamp > Winamp Technical Support

Reply
Thread Tools Search this Thread Display Modes
Old 12th June 2000, 23:14   #1
CKanich
Junior Member
 
Join Date: Jun 2000
Posts: 3
Send a message via ICQ to CKanich
(begin really-long-description-of-problem)
Hey hey, this is quite a nice forum, I've learned a lot from just reading all the stuff in here, but (of course) I have a question of my own... I'm developing a program in VB(I've played with VB, java, and C++, so I _very basically_ know how to program in these languages, and hoping to learn more by simply trying to write progs for my own fun and profit) that is going to use winamp's great VBR-time-estimate feature to create a database of mp3s on a CD-ROM. I've figured out that I'm going to load an m3u of each CD into a simple database, but first I'd like to automate the m3u creation process, which entails:

<UL TYPE=SQUARE>
<LI> Starting winamp
<LI> Loading a CD into the playlist*
<LI> Writing the playlist to an m3u
</UL>

* this is where the hard part comes in:
(end really-long-description-of-problem)
I need help manipulating winamp command #1036, the "add dir" command. Any ideas?
CKanich is offline   Reply With Quote
Old 13th June 2000, 00:18   #2
peter
ist death
 
peter's Avatar
 
Join Date: May 2000
Posts: 3,704
If you want to add whole directory to playlist, use WM_COPYDATA with command ID 100, exacly the same way as when you add a single file (C++):

COPYDATASTRUCT cds;
cds.dwData=100;
cds.cbData=strlen(dir);
cds.lpData=dir;
SendMessage(wnd,WM_COPYDATA,0,(long)&cds);

You can SendMessage(wnd,WM_USER,0,0x44d) to clear playlist before adding that dir.
peter is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Winamp > Winamp Technical Support

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