PDA

Click to See Complete Forum and Search --> : music list


nukem996
Feb 2nd, 2001, 06:48 PM
i was going to program a music list for my vb media player, and i looked at wmp7(windows media player 7) *.m3u file. it look likes HTML. and the winamp *.m3u looks like they almost wanted to encript it.
witch one do u think i should use? winamp, wmp7, my own, or all?

parksie
Feb 2nd, 2001, 06:57 PM
WinAmp isn't encrypted, just ignore the random lines and it'll still open it fine. It's just extra info so it doesn't have to read it from the file each time.

nukem996
Feb 2nd, 2001, 07:35 PM
thats what they ment. i thought they meant something that winamp didnt want other people to know.

nukem996
Feb 2nd, 2001, 08:21 PM
your looking at this thing, at least VOTE!!!
COME ON YOU CAN DO IT!!!

parksie
Feb 3rd, 2001, 05:33 AM
Just put all the filenames into a text file, one per line. Then drag that text file onto Winamp ;)

nukem996
Feb 3rd, 2001, 04:06 PM
thats interseting.

parksie: y if u make a list in wmp7 dose it have all this info about the mp3, and it looks like HTML?

parksie
Feb 3rd, 2001, 05:00 PM
Because it's XML.

nukem996
Feb 3rd, 2001, 07:26 PM
really?? i didnt know that, to program it do you think i need to know xml?

nukem996
Feb 3rd, 2001, 08:42 PM
well since winamp is winning i started to program it. but its made weird. first of all its extetion to the files is what ever the m3u file isnt in. example:
you want it to play this music file
C:\my doucuments\music\song.mp3
you save the music list in:
C:\my doucments\lists
the location of the mp3 will be:
\music\song.mp3
weird, y all the extra code for that? and if you move the list or the files it might not work. :( and whats the #EXTINF:*** (title of song) [note: * is a number]
#EXTINF:*** means? the number means? why put in the title of the song? all of these things are makeing programing this harder.

nukem996
Feb 3rd, 2001, 11:05 PM
parksie: do u know how to open a file with all its lines of text?

parksie
Feb 4th, 2001, 04:08 AM
ifstream InFile("file.m3u");

if(InFile.fail()) {
// Do something
return;
}

char buf[1024];
while(InFile.getline(buf, 1024)) {
// Do something with this line, possibly put it into a string and add it to a vector.
}

InFile.close();

nukem996
Feb 4th, 2001, 04:39 PM
im doing this in vb, but its ok u figered out how to do it in vb, thx any way.

i just want to make sure this is right, to play an mp3 it would be the Device is mpeg and the flags are 0&, 0&, 0& is that right?