View Single Post
  #7 (permalink)  
Old 15th Sep 2009, 10:47 am
vladhed vladhed is offline
Junior Member
 
Join Date: Aug 2009
Posts: 26
Default Playlist

Must be similar to the AnyKa chip one that I bought.

The ALT playlist format is just the full pathname starting with C:/AUDIO/.....mp3, separated by semi-colon ";", encoded in little-endian UTF-16 (e.g. two bytes per character). If you are clever you can hack these together using VI.

I have take the java source for PlayListSE and hacked support for saving in this format - so I edit the playlists in winamp M3u format, then upload them into PlayListSE to save as ALT. If you are so included add the following to PlayList::saveAs() function:

if(suffix.equals("alt")) {
for(ctr = 0; ctr < size(); ctr++) {
String songPath, line8;
line="";

tempSong = (Song)get(ctr);
songPath = choosePath(relRoot, tempSong);
line8 = "C:/" + songPath.replace("\\","/").substring(0,songPath.length()-2) + ";";
for (int i=0; i<line8.length(); i++) {
line = line + line8.charAt(i) + '\000';
}
try {
outFile.write(line, 0, line.length());
} catch(IOException e) {AppFrame.doError("An error was thrown while writing the m3u file " + outFileName);} //in case something blew up
}
}
Reply With Quote
Sponsored Links