Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  playlist converter rockbox to sansa OF (m3u->pla)
« previous next »
  • Print
Pages: [1]

Author Topic: playlist converter rockbox to sansa OF (m3u->pla)  (Read 1969 times)

Offline gratt

  • Member
  • *
  • Posts: 34
playlist converter rockbox to sansa OF (m3u->pla)
« on: April 17, 2007, 10:02:17 PM »
I have made a viewer plugin  playlist converter for the Sansa E200's running rockbox.
It's in the flyspray patch tracker (6884), under playlists.
This will allow rockbox created playlists (m3u/8)to be converted to
a (.pla) playlists that will work in the Sansa original firmware.

I am now trying to do a (.pla) -> (.m3u/8)
original firmware to rockbox playlist converter.
I am having trouble reading the .pla files as they have
null bytes between each character.
Any ideas would be welcome.
GRaTT
Logged

Offline elborak

  • Member
  • *
  • Posts: 177
Re: playlist converter rockbox to sansa OF (m3u->pla)
« Reply #1 on: April 17, 2007, 11:47:48 PM »
If you are seeing NUL bytes every other character, odds are it's in Unicode.
Logged

Offline gratt

  • Member
  • *
  • Posts: 34
Re: playlist converter rockbox to sansa OF (m3u->pla)
« Reply #2 on: April 18, 2007, 01:25:22 AM »
OK, but how do i read it and remove the null bytes
GRaTT

(edit)
I finally figured this out.
I am using
           rb->utf16LEdecode(utf16-buffer, empty-buffer, size_of_file);
to convert a char buffer of the entire file at once.

Thanks to everyone on #rockbox irc that pointed me in the right direction.

GRaTT
« Last Edit: April 19, 2007, 12:19:55 PM by gratt »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  playlist converter rockbox to sansa OF (m3u->pla)
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.06 seconds with 15 queries.