Am Samstag, den 17.09.2011, 20:51 +0200 schrieb John Paul Adrian Glaubitz: > However, before we make any bigger changes to netmdcli/libnetmd, the > code will need some further cleanup first. There is some code in netmdcli > which I think should rather go into libnetmd. I was particularly thinking > about the code which sets up the secure session and sends a track > to the device. That should probably better go into libnetmd, If we are going to refactor the code, we should make it possible to read the input stream on-demand instead of needing the whole track in memory. This is especially important for SP uploads that are transferred as PCM, as the extreme case, a 80 minutes PCM track is nearly 850 megabytes. Transferring the song is not timing critical, so hard disk acess during song transfer should not cause issues. In C, the only method to achieve that would be some kind of call back (in the python code, an effect like this could be obtained by passing an iterator to the send function that creates the packet on-demand) Regards, Michael Karcher