Reply
Highlighted
SanDisk User
Posts: 56
Registered: ‎07-01-2009

YAPL - a new playlist creator for the FUZE

[ Edited ]

Hi all - 

 

My first post, and it's to announce a very early version of my playlist creator for my new FUZE. It's for Windows, and requires you to connect your FUZE in MSC mode. It creates playlists which can reference both the drives the FUZE uses.

 

The UI is very rough, and there will be bugs. Unfortunately, there is nobody else around me that has a FUZE, so I'm throwing this out for testing on here. It works by asking you which drives correspond to your FUZE drives (internal and u-SD slot) and then builds a list of media on those drives. You use a simple select-and-assign method to add your files to a playlist which can then be saved to the FUZE. Thanks to Christian Packmann, these files can reference either drive within the same playlist - something that I see a few people have asked for.

 

The prog is very rough, and can be considered Beta-quality. There will be bugs and issues that I have yet to see on my machine, but will appear on yours. If you could leave feedback here (both about bugs and features/enhancements you'd like to see) then I'd be happy to get them sorted.

 

You can find the prog here:

 

http://paul.dunn.googlepages.com/YAPL.zip

 

Thanks for your time!

 

D.

 

Message Edited by Dunny on 07-25-2009 02:03 AM


Oh dear, I appear to have soiled myself. Oxfam won't be pleased.
Highlighted
Newbie
Posts: 12
Registered: ‎05-16-2009

Re: YAPL - a new playlist creator for the FUZE

 No support for ogg?

Anyway, this would be extremely useful for me if it did support ogg format but unfortunately it doesnt. I can see, however, this does have huge amounts of potential Smiley Happy

Highlighted
SanDisk User
Posts: 56
Registered: ‎07-01-2009

Re: YAPL - a new playlist creator for the FUZE

As you're the first person to request something, then I'll add ogg support (including Vorbis comments) to the next release.

 

Cheers Smiley Happy

 

D. 



Oh dear, I appear to have soiled myself. Oxfam won't be pleased.
Highlighted
Newbie
Posts: 12
Registered: ‎05-16-2009

Re: YAPL - a new playlist creator for the FUZE

That would actually be awesome, thanks so much Smiley Happy
Highlighted
SanDisk Fanatic
Posts: 213
Registered: ‎08-14-2009

Re: YAPL - a new playlist creator for the FUZE

Looks promising, if only it wasn't win32-only...

If you are not willing to port it to other operating systems, could you please post the source code, so another could could do it?

If it's in a easyly-readable language, I might implement it's functions to video4fuze.

Thank you for your contribution to the sansa community Smiley Happy

Tired of Sansa Media Converter? You want to put videos on your fuze but you can't use SMC? Then, check video4fuze

4Gb black fuze v2.02.26 + 8 Gb class 6 µSD
Highlighted
SanDisk User
Posts: 56
Registered: ‎07-01-2009

Re: YAPL - a new playlist creator for the FUZE

It's written in Borland Delphi 5, and relies for the most part upon Win32 API to get most of the job done from a UI perspective - the actual playlist creation is pretty easy and can be done with a script. Basically you need to use unix paths, and reference the internal drive as /mmc:0:/somefolder/sometune and the micro-sd as /mmc:1:/somefolder/sometune.

 

I may release the source when I complete the next version, I need to check the licenses of the components I'm using.

 

D.

 



Oh dear, I appear to have soiled myself. Oxfam won't be pleased.
Highlighted
SanDisk Fanatic
Posts: 213
Registered: ‎08-14-2009

Re: YAPL - a new playlist creator for the FUZE

Great information! Those paths work in m3u files, I assume.

Delphi? Ouch, it could'nt be less portable then, I think. If it was in another language, the win32 issue still could be worked around using winelib...

Tired of Sansa Media Converter? You want to put videos on your fuze but you can't use SMC? Then, check video4fuze

4Gb black fuze v2.02.26 + 8 Gb class 6 µSD
Highlighted
SanDisk User
Posts: 56
Registered: ‎07-01-2009

Re: YAPL - a new playlist creator for the FUZE

[ Edited ]

Sorry about the delphi Smiley Happy

 

Basically, Delphi handles the Win32 side of the UI - I've implemented USB stack searching to automatically determine the drives that the Fuze utilises, and a lot of heavy API To get drag and drop working, with alpha blended images for the sheer hell of it. The actual file-search is done using the free audio library ATL (http://mac.sourceforge.net/atl/) which just pulls out tags (though I shall be adding batch tag editing and possibly replaygain tags too).

 

The routine to generate a playlist is thus:

 

 

DriveLetter := FuzeStatus.Internal.DriveLetter;

SaveList := TStringlist.Create;

For Idx := 0 To PlayList.Count -1 Do Begin

Str := PlayList[Idx];

Idx2 := 1;

While Idx2 < Length(Str) Do Begin

If Str[Idx2] = '\' Then

Str[Idx2] := '/';

Inc(Idx2);

End;

If Str[1] = DriveLetter Then

Str := '/mmc:0' + Copy(Str, 2, Length(Str))

Else

Str := '/mmc:1' + Copy(Str, 2, Length(Str));

SaveList.Add(Str);

End;

 

You cannot use files from both the internal and external storage with any playlists other than .pla format. m3u and others cannot be used. 

 

You have to make a playlist using two files - one blank file ( "playlist.pla" ) of zero bytes, and one ( "playlist.pla.refs" ) which contains the filenames in unix format. Both need to reside in the Fuze's PLAYLISTS folder, on the root of the internal storage.

 

Other than that, it's pretty easy.

 

The only license that any of my source components use is the LGPL, so I shall have no problems making the source available when it's in a fit state to do so. 

 

D.

Message Edited by Dunny on 08-20-2009 03:34 PM


Oh dear, I appear to have soiled myself. Oxfam won't be pleased.
Highlighted
SanDisk Fanatic
Posts: 209
Registered: ‎04-09-2009

Re: YAPL - a new playlist creator for the FUZE


@ssorgatem wrote:
Great information! Those paths work in m3u files, I assume.

Delphi? Ouch, it could'nt be less portable then, I think. If it was in another language, the win32 issue still could be worked around using winelib...

No, they don't work in m3u files but in SanDisk Sansa's own pla playlist files. See also this post (and others). Should not be difficult to code as it is plain absolute file names only ...

___________
Fuze 8GB (V01.02.28), Olympus LS-10
Highlighted
SanDisk Fanatic
Posts: 213
Registered: ‎08-14-2009

Re: YAPL - a new playlist creator for the FUZE

But they work only for MTP?

I've read something somewhere about m3u in the fuze in MSC...

Tired of Sansa Media Converter? You want to put videos on your fuze but you can't use SMC? Then, check video4fuze

4Gb black fuze v2.02.26 + 8 Gb class 6 µSD