LIBMTP_track_struct(3)
πΈ NAME πΈ
LIBMTP_track_struct β that's the name, bestie. This is the libmtp Library Functions Manual page for the track struct, and it's giving full field-list energy π
β¨
β¨ SYNOPSIS β¨
#include <libmtp.h>
π¦ Data Fields π¦
uint32_t item_id
uint32_t parent_id
uint32_t storage_id
char * title
char * artist
char * composer
char * genre
char * album
char * date
char * filename
uint16_t tracknumber
uint32_t duration
uint32_t samplerate
uint16_t nochannels
uint32_t wavecodec
uint32_t bitrate
uint16_t bitratetype
uint16_t rating
uint32_t usecount
uint64_t filesize
time_t modificationdate
LIBMTP_filetype_t filetype
LIBMTP_track_t * next
π Detailed Description π
MTP track struct β literally the whole vibe of a track in struct form, bestie. MTP track struct is the main character here ππ§
π Field Documentation π
π΅ char* LIBMTP_track_struct::album
Album name for track β yes, the album's name, periodt π
- Examples:
tracks.c. - Referenced by:
LIBMTP_destroy_track_t(), andLIBMTP_Update_Track_Metadata().
π€ char* LIBMTP_track_struct::artist
Name of recording artist β the artist behind the track, slay π
- Examples:
getplaylist.c,playlists.c, andtracks.c. - Referenced by:
LIBMTP_destroy_track_t(), andLIBMTP_Update_Track_Metadata().
ποΈ uint32_t LIBMTP_track_struct::bitrate
(Average) bitrate for this file β min=1 max=0x16e360 π₯
- Examples:
tracks.c. - Referenced by:
LIBMTP_Update_Track_Metadata().
ποΈ uint16_t LIBMTP_track_struct::bitratetype
0 = unused, 1 = constant, 2 = VBR, 3 = free β pick your fighter, no cap π
- Examples:
tracks.c. - Referenced by:
LIBMTP_Update_Track_Metadata().
πΌ char* LIBMTP_track_struct::composer
Name of recording composer β the composer credit, iconic β¨
- Examples:
tracks.c. - Referenced by:
LIBMTP_destroy_track_t(), andLIBMTP_Update_Track_Metadata().
π
char* LIBMTP_track_struct::date
Date of original recording as a string β yes, as a string, bestie ποΈ
- Examples:
tracks.c. - Referenced by:
LIBMTP_destroy_track_t(), andLIBMTP_Update_Track_Metadata().
β±οΈ uint32_t LIBMTP_track_struct::duration
Duration in milliseconds β the track's time on the clock, periodt β³
- Examples:
tracks.c. - Referenced by:
LIBMTP_Update_Track_Metadata().
π char* LIBMTP_track_struct::filename
Original filename of this track β the file's OG name π«Ά
- Examples:
tracks.c. - Referenced by:
LIBMTP_destroy_track_t(),LIBMTP_Get_Tracklisting_With_Callback_For_Storage(),LIBMTP_Get_Trackmetadata(),LIBMTP_Send_Track_From_File_Descriptor(),LIBMTP_Send_Track_From_Handler(), andLIBMTP_Set_Track_Name().
πΎ uint64_t LIBMTP_track_struct::filesize
Size of track file in bytes β big file energy or tiny file energy, either way it's bytes πΎ
- Examples:
tracks.c. - Referenced by:
LIBMTP_Get_Tracklisting_With_Callback_For_Storage(),LIBMTP_Get_Trackmetadata(),LIBMTP_Send_Track_From_File_Descriptor(), andLIBMTP_Send_Track_From_Handler().
ποΈ LIBMTP_filetype_t LIBMTP_track_struct::filetype
Filetype used for the current track β what kind of file this track is serving π
- Examples:
tracks.c. - Referenced by:
LIBMTP_Get_Tracklisting_With_Callback_For_Storage(),LIBMTP_Get_Trackmetadata(),LIBMTP_Send_Track_From_File_Descriptor(),LIBMTP_Send_Track_From_Handler(),LIBMTP_Set_Track_Name(), andLIBMTP_Update_Track_Metadata().
πΆ char* LIBMTP_track_struct::genre
Genre name for track β the genre label, go off π
- Examples:
tracks.c. - Referenced by:
LIBMTP_destroy_track_t(), andLIBMTP_Update_Track_Metadata().
π uint32_t LIBMTP_track_struct::item_id
Unique item ID β the track's one-of-one ID, iykyk πͺͺ
- Examples:
sendtr.c, andtracks.c. - Referenced by:
LIBMTP_Get_Tracklisting_With_Callback_For_Storage(),LIBMTP_Get_Trackmetadata(),LIBMTP_Send_Track_From_File_Descriptor(),LIBMTP_Send_Track_From_Handler(),LIBMTP_Set_Track_Name(), andLIBMTP_Update_Track_Metadata().
π°οΈ time_t LIBMTP_track_struct::modificationdate
Date of last alteration of the track β the last-touched timestamp vibe π°οΈ
- Referenced by:
LIBMTP_Get_Tracklisting_With_Callback_For_Storage(), andLIBMTP_Get_Trackmetadata().
π LIBMTP_track_t* LIBMTP_track_struct::next
Next track in list or NULL if last track β linked-list bestie behavior π
- Referenced by:
LIBMTP_Get_Tracklisting_With_Callback_For_Storage().
π uint16_t LIBMTP_track_struct::nochannels
Number of channels in this recording β 0 = unknown, 1 or 2 π§
- Examples:
tracks.c. - Referenced by:
LIBMTP_Update_Track_Metadata().
π uint32_t LIBMTP_track_struct::parent_id
ID of parent folder β the folder that holds this track, no cap π
- Referenced by:
LIBMTP_Get_Tracklisting_With_Callback_For_Storage(),LIBMTP_Get_Trackmetadata(),LIBMTP_Send_Track_From_File_Descriptor(), andLIBMTP_Send_Track_From_Handler().
β uint16_t LIBMTP_track_struct::rating
User rating 0-100 (0x00-0x64) β rate it, bestie β
- Examples:
tracks.c. - Referenced by:
LIBMTP_Update_Track_Metadata().
ποΈ uint32_t LIBMTP_track_struct::samplerate
Sample rate of original file β min 0x1f80 max 0xbb80 π
- Examples:
tracks.c. - Referenced by:
LIBMTP_Update_Track_Metadata().
ποΈ uint32_t LIBMTP_track_struct::storage_id
ID of storage holding this track β where the track is stored, literally ποΈ
- Examples:
sendtr.c. - Referenced by:
LIBMTP_Get_Tracklisting_With_Callback_For_Storage(),LIBMTP_Get_Trackmetadata(),LIBMTP_Send_Track_From_File_Descriptor(), andLIBMTP_Send_Track_From_Handler().
π·οΈ char* LIBMTP_track_struct::title
Track title β the title title, main character energy π·οΈπ
- Examples:
getplaylist.c,playlists.c, andtracks.c. - Referenced by:
LIBMTP_destroy_track_t(), andLIBMTP_Update_Track_Metadata().
π’ uint16_t LIBMTP_track_struct::tracknumber
Track number (in sequence on recording) β the order it sits in, bestie π’
- Examples:
tracks.c. - Referenced by:
LIBMTP_Update_Track_Metadata().
βΆοΈ uint32_t LIBMTP_track_struct::usecount
Number of times used/played β the play-count energy, periodt βΆοΈ
- Examples:
tracks.c. - Referenced by:
LIBMTP_Update_Track_Metadata().
π uint32_t LIBMTP_track_struct::wavecodec
FourCC wave codec name β yes, a FourCC codec name, slay π
- Examples:
tracks.c. - Referenced by:
LIBMTP_Update_Track_Metadata().
π Author π
Generated automatically by Doxygen for libmtp from the source code.
That's the whole LIBMTP_track_struct(3) page, bestie! Source/version: libmtp Version 1.1.23. Date: not listed on this page, no cap β I'm not making one up π. Bye, love you, keep slaying those structs π«Άπ
π¦ where this page comes from
- arch rolling: libmtp 1.1.23-1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms