Lines Matching refs:trackmeta
90 static int add_track_to_album(LIBMTP_album_t *albuminfo, LIBMTP_track_t *trackmeta) in add_track_to_album() argument
148 tracks[found_album->no_tracks-1] = trackmeta->item_id; in add_track_to_album()
155 *trackid = trackmeta->item_id; in add_track_to_album()
158 albuminfo->storage_id = trackmeta->storage_id; in add_track_to_album()
194 LIBMTP_track_t *trackmeta; in sendtrack_function() local
225 trackmeta = LIBMTP_new_track_t(); in sendtrack_function()
226 trackmeta->filetype = find_filetype (from_path); in sendtrack_function()
227 if (!LIBMTP_FILETYPE_IS_TRACK(trackmeta->filetype)) { in sendtrack_function()
228 … printf("Not a valid track codec: \"%s\"\n", LIBMTP_Get_Filetype_Description(trackmeta->filetype)); in sendtrack_function()
229 LIBMTP_destroy_track_t(trackmeta); in sendtrack_function()
289 printf("Codec: %s\n", LIBMTP_Get_Filetype_Description(trackmeta->filetype)); in sendtrack_function()
292 trackmeta->title = strdup(ptitle); in sendtrack_function()
299 trackmeta->album = strdup(palbum); in sendtrack_function()
308 trackmeta->artist = strdup(partist); in sendtrack_function()
314 trackmeta->composer = strdup(pcomposer); in sendtrack_function()
319 trackmeta->genre = strdup(pgenre); in sendtrack_function()
327 trackmeta->date = strdup(tmp); in sendtrack_function()
331 trackmeta->tracknumber = tracknum; in sendtrack_function()
336 trackmeta->duration = length * 1000; in sendtrack_function()
340 trackmeta->filename = strdup(filename); in sendtrack_function()
342 trackmeta->filesize = filesize; in sendtrack_function()
343 trackmeta->parent_id = parent_id; in sendtrack_function()
364 trackmeta->storage_id = storageid; in sendtrack_function()
368 ret = LIBMTP_Send_Track_From_File(device, from_path, trackmeta, progress, NULL); in sendtrack_function()
376 printf("New track ID: %d\n", trackmeta->item_id); in sendtrack_function()
381 ret = add_track_to_album(albuminfo, trackmeta); in sendtrack_function()
384 LIBMTP_destroy_track_t(trackmeta); in sendtrack_function()