FS#4771 - ipod playlist plugin
Opened by Kevin Mark (KevinMark) - Saturday, 04 March 2006, 20:52 GMT
Last edited by Jonathan Gordon (jdgordon) - Thursday, 02 August 2007, 12:40 GMT
|
DetailsThis plugin will read in the playlists from the iTunesDB file on an iPod. The user can then select a playlist to play. It writes a /.iPlay.m3u file and loads it into the current_playlist and starts playing.
plugin.[hc] have been modified to include playlist_create to support this plugin. |
Thursday, 02 August 2007, 12:40 GMT
Reason for closing: Out of Date
Using a statically declared buffer doesn't feel the right way to approach this. You can use the rb->plugin_get_audio_buffer() function which will return a pointer to the approximately 30MB audio buffer, and an integer telling you how big that buffer is. You could then either just load the itunesdb file into that buffer, and process it directly (without copying), or dynamically allocate your arrays in that buffer.
You'll still need the plugin.c and plugin.h patches above to add the playlist_create() call to the api. What's the best way to get this added to the api, so I don't have to worry about it anymore? Should I open another patch?
Any comments greatly appreciated!
http://libitunesdb.sourceforge.net/
$ patch < iplay_plugin_h.patch
patching file plugin.h
Hunk #1 FAILED at 98.
Hunk #2 FAILED at 473.
2 out of 2 hunks FAILED -- saving rejects to file plugin.h.rej