LIBMTP_track_struct(3)

πŸ“¦ version 1.1.23, in arch rolling

🌸 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(), and LIBMTP_Update_Track_Metadata().

🎀 char* LIBMTP_track_struct::artist

Name of recording artist β€” the artist behind the track, slay 🌟

  • Examples: getplaylist.c, playlists.c, and tracks.c.
  • Referenced by: LIBMTP_destroy_track_t(), and LIBMTP_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(), and LIBMTP_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(), and LIBMTP_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(), and LIBMTP_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(), and LIBMTP_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(), and LIBMTP_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(), and LIBMTP_Update_Track_Metadata().

πŸ†” uint32_t LIBMTP_track_struct::item_id

Unique item ID β€” the track's one-of-one ID, iykyk πŸͺͺ

  • Examples: sendtr.c, and 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(), and LIBMTP_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(), and LIBMTP_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(), and LIBMTP_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(), and LIBMTP_Send_Track_From_Handler().

🏷️ char* LIBMTP_track_struct::title

Track title β€” the title title, main character energy πŸ·οΈπŸ‘‘

  • Examples: getplaylist.c, playlists.c, and tracks.c.
  • Referenced by: LIBMTP_destroy_track_t(), and LIBMTP_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