BlitzCoder Essentials
•
Home Page
•
About BlitzCoder
•
Contributors
•
Terms of Use
•
Email Us
Main Areas
•
BlitzCoder Chat
•
Discussions
•
Articles/Tutorials
•
Code Database
•
Link Database
•
Showcase Area
•
Worklogs
•
Competitions
Special Areas
•
Undocumented
Other Blitz Sites
•
Blitz Basic Home
•
Blitz Showcase
•
BlitzPlay Library
Forum Login
Username:
Password:
•
Register Now!
BlitzCoder Code Archives Page
Main Codes Page
"play winamp playlists(m3u)"
, by cyanide
lets you read in a winamp playlist
Code
ive commented out certain functions that you wouldnt have (no idea if they have changed the playlist formats lately, thou it should work fine (works here no prob)) Function readwinampplaylist(list$) filein = ReadFile(list$) ;writetodebug("winamp playlist loaded:"+list$) ReadLine(filein);//unneeded header or something Repeat titleline$ = ReadLine(filein) If titleline$ = "" Then Exit If Left(titleline$,1) = "#" musicloc$ = ReadLine(filein) Else musicloc$ = titleline$ EndIf drivetag = Instr(musicloc$,":") If drivetag ;addmusic(musicloc$) << my function to add the music to a list Else ;addmusic("c:"+musicloc$) << my function to add the music to a list EndIf Forever CloseFile(filein) End Function should give you an idea. parp! edit: oh ya, you will have to do your own list stuff, basically the music for me is added to my type list, then its randomly selected in game etc etc... you get the idea
Copyright(c) 2000-2004, BlitzCoder. All Rights Reserved.
Code software created by Krylar's Kreations