From: Chris A. <ch...@nu...> - 2008-09-07 22:13:51
|
I've been writing a small C application using libgpod, but I'm somewhat stumped by an issue I've encountered. The problem is that after loading a test track / playlist and writing them to the device, I then can play them in gtkpod and other music players, but when I unplug it to see if it works I'm stuck with the blinking orange light. If I use gtkpod itself, or gnupod scrips the shuffle can play normally. Since it is working with linux clients, I'm not sure what to check with such vague error reporting on the side of the device itself. I was hoping someone might be able to point out something crucial I'm forgetting to do. Below is the relevant code snippets actually modifying the device: Itdb_iTunesDB *ipod = itdb_new(); ipod->device = itdb_device_new(); itdb_device_set_mountpoint(ipod->device, mount); Itdb_Playlist *playlist = itdb_playlist_new("Playlist", 0); itdb_playlist_add(ipod, playlist, -1); itdb_playlist_set_mpl(playlist); Itdb_Track *track; track = itdb_track_new(); /* id3 info and duration are added here based on an id3 parsing function I wrote */ itdb_playlist_add_track(playlist, track, -1); itdb_track_add(ipod, track, -1); itdb_cp_track_to_ipod(track, tracknames[x], &err); itdb_write(ipod, &err); Thanks in advance for any assistance. -- Chris Anderson <ch...@nu...> XMPP: ch...@gm... 7BF2 B28A BD4F BAEB D8BD ADC8 E783 07DB 5210 5610 |