#[repr(C)]pub struct LIBMTP_track_struct {Show 23 fields
pub item_id: u32,
pub parent_id: u32,
pub storage_id: u32,
pub title: *mut c_char,
pub artist: *mut c_char,
pub composer: *mut c_char,
pub genre: *mut c_char,
pub album: *mut c_char,
pub date: *mut c_char,
pub filename: *mut c_char,
pub tracknumber: u16,
pub duration: u32,
pub samplerate: u32,
pub nochannels: u16,
pub wavecodec: u32,
pub bitrate: u32,
pub bitratetype: u16,
pub rating: u16,
pub usecount: u32,
pub filesize: u64,
pub modificationdate: time_t,
pub filetype: LIBMTP_filetype_t,
pub next: *mut LIBMTP_track_t,
}Expand description
MTP track struct
Fields§
§item_id: u32< Unique item ID
parent_id: u32< ID of parent folder
storage_id: u32< ID of storage holding this track
title: *mut c_char< Track title
artist: *mut c_char< Name of recording artist
composer: *mut c_char< Name of recording composer
genre: *mut c_char< Genre name for track
album: *mut c_char< Album name for track
date: *mut c_char< Date of original recording as a string
filename: *mut c_char< Original filename of this track
tracknumber: u16< Track number (in sequence on recording)
duration: u32< Duration in milliseconds
samplerate: u32< Sample rate of original file, min 0x1f80 max 0xbb80
nochannels: u16< Number of channels in this recording 0 = unknown, 1 or 2
wavecodec: u32< FourCC wave codec name
bitrate: u32< (Average) bitrate for this file min=1 max=0x16e360
bitratetype: u16< 0 = unused, 1 = constant, 2 = VBR, 3 = free
rating: u16< User rating 0-100 (0x00-0x64)
usecount: u32< Number of times used/played
filesize: u64< Size of track file in bytes
modificationdate: time_t< Date of last alteration of the track
filetype: LIBMTP_filetype_t< Filetype used for the current track
next: *mut LIBMTP_track_t< Next track in list or NULL if last track