![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Info tag data structure
Representation of available information of processed audio file.
More...
Topics | |
Value Help | |
Classes | |
class | kodi::addon::AudioEncoderInfoTag |
Functions | |
void | kodi::addon::AudioEncoderInfoTag::SetTitle (const std::string &title) |
Set the title from music as string on info tag. | |
const std::string & | kodi::addon::AudioEncoderInfoTag::GetTitle () const |
Get title name. | |
void | kodi::addon::AudioEncoderInfoTag::SetArtist (const std::string &artist) |
Set artist name. | |
const std::string & | kodi::addon::AudioEncoderInfoTag::GetArtist () const |
Get artist name. | |
void | kodi::addon::AudioEncoderInfoTag::SetAlbum (const std::string &album) |
Set album name. | |
const std::string & | kodi::addon::AudioEncoderInfoTag::GetAlbum () const |
Get album name. | |
void | kodi::addon::AudioEncoderInfoTag::SetAlbumArtist (const std::string &albumArtist) |
Set album artist name. | |
const std::string & | kodi::addon::AudioEncoderInfoTag::GetAlbumArtist () const |
Get album artist name. | |
void | kodi::addon::AudioEncoderInfoTag::SetMediaType (const std::string &mediaType) |
Set the media type of the music item. | |
const std::string & | kodi::addon::AudioEncoderInfoTag::GetMediaType () const |
Get the media type of the music item. | |
void | kodi::addon::AudioEncoderInfoTag::SetGenre (const std::string &genre) |
Set genre name from music as string if present. | |
const std::string & | kodi::addon::AudioEncoderInfoTag::GetGenre () const |
Get genre name from music as string if present. | |
void | kodi::addon::AudioEncoderInfoTag::SetDuration (int duration) |
Set the duration of music as integer from info. | |
int | kodi::addon::AudioEncoderInfoTag::GetDuration () const |
Get the duration of music as integer from info. | |
void | kodi::addon::AudioEncoderInfoTag::SetTrack (int track) |
Set track number (if present) from music info as integer. | |
int | kodi::addon::AudioEncoderInfoTag::GetTrack () const |
Get track number (if present). | |
void | kodi::addon::AudioEncoderInfoTag::SetDisc (int disc) |
Set disk number (if present) from music info as integer. | |
int | kodi::addon::AudioEncoderInfoTag::GetDisc () const |
Get disk number (if present) | |
void | kodi::addon::AudioEncoderInfoTag::SetDiscSubtitle (const std::string &discSubtitle) |
Set disk subtitle name (if present) from music info. | |
const std::string & | kodi::addon::AudioEncoderInfoTag::GetDiscSubtitle () const |
Get disk subtitle name (if present) from music info. | |
void | kodi::addon::AudioEncoderInfoTag::SetDiscTotal (int discTotal) |
Set disks amount quantity (if present) from music info as integer. | |
int | kodi::addon::AudioEncoderInfoTag::GetDiscTotal () const |
Get disks amount quantity (if present) | |
void | kodi::addon::AudioEncoderInfoTag::SetReleaseDate (const std::string &releaseDate) |
Set release date as string from music info (if present). ISO8601 date YYYY, YYYY-MM or YYYY-MM-DD. | |
const std::string & | kodi::addon::AudioEncoderInfoTag::GetReleaseDate () const |
Get release date as string from music info (if present). | |
void | kodi::addon::AudioEncoderInfoTag::SetLyrics (const std::string &lyrics) |
Set string from lyrics. | |
const std::string & | kodi::addon::AudioEncoderInfoTag::GetLyrics () const |
Get string from lyrics. | |
void | kodi::addon::AudioEncoderInfoTag::SetSamplerate (int samplerate) |
Set related stream samplerate. | |
int | kodi::addon::AudioEncoderInfoTag::GetSamplerate () const |
Get related stream samplerate. | |
void | kodi::addon::AudioEncoderInfoTag::SetChannels (int channels) |
Set related stream channels amount. | |
int | kodi::addon::AudioEncoderInfoTag::GetChannels () const |
Get related stream channels amount. | |
void | kodi::addon::AudioEncoderInfoTag::SetBitsPerSample (int bits_per_sample) |
Set related stream bits per sample. | |
int | kodi::addon::AudioEncoderInfoTag::GetBitsPerSample () const |
Get related stream bits per sample. | |
void | kodi::addon::AudioEncoderInfoTag::SetTrackLength (int track_length) |
Set related stream track length. | |
int | kodi::addon::AudioEncoderInfoTag::GetTrackLength () const |
Get related stream track length. | |
void | kodi::addon::AudioEncoderInfoTag::SetComment (const std::string &comment) |
Set additional information comment (if present). | |
const std::string & | kodi::addon::AudioEncoderInfoTag::GetComment () const |
Get additional information comment (if present). | |
Info tag data structure
Representation of available information of processed audio file.
This is used to get all the necessary data of audio stream and to have on created files by encoders.
The following table contains values that can be set with class AudioEncoderInfoTag :
Name | Type | Set call | Get call |
---|---|---|---|
Title | std::string | SetTitle | GetTitle |
Artist | std::string | SetArtist | GetArtist |
Album | std::string | SetAlbum | GetAlbum |
Album artist | std::string | SetAlbumArtist | GetAlbumArtist |
Media type | std::string | SetMediaType | GetMediaType |
Genre | std::string | SetGenre | GetGenre |
Duration | int | SetDuration | GetDuration |
Track number | int | SetTrack | GetTrack |
Disc number | int | SetDisc | GetDisc |
Disc subtitle name | std::string | SetDiscSubtitle | GetDiscSubtitle |
Disc total amount | int | SetDiscTotal | GetDiscTotal |
Release date | std::string | SetReleaseDate | GetReleaseDate |
Lyrics | std::string | SetLyrics | GetLyrics |
Samplerate | int | SetSamplerate | GetSamplerate |
Channels amount | int | SetChannels | GetChannels |
Bits per sample | int | SetBitsPerSample | GetBitsPerSample |
Track length | int | SetTrackLength | GetTrackLength |
Comment text | std::string | SetComment | GetComment |
|
inline |
Get album name.
|
inline |
Get album artist name.
|
inline |
Get artist name.
|
inline |
Get related stream bits per sample.
|
inline |
Get related stream channels amount.
|
inline |
Get additional information comment (if present).
|
inline |
Get disk number (if present)
|
inline |
Get disk subtitle name (if present) from music info.
|
inline |
Get disks amount quantity (if present)
|
inline |
Get the duration of music as integer from info.
|
inline |
Get genre name from music as string if present.
|
inline |
Get string from lyrics.
|
inline |
Get the media type of the music item.
|
inline |
Get release date as string from music info (if present).
|
inline |
Get related stream samplerate.
|
inline |
Get title name.
|
inline |
Get track number (if present).
|
inline |
Get related stream track length.
|
inline |
Set album name.
|
inline |
Set album artist name.
|
inline |
Set artist name.
Set related stream bits per sample.
Set related stream channels amount.
|
inline |
Set additional information comment (if present).
Set disk number (if present) from music info as integer.
|
inline |
Set disk subtitle name (if present) from music info.
Set disks amount quantity (if present) from music info as integer.
Set the duration of music as integer from info.
|
inline |
Set genre name from music as string if present.
|
inline |
Set string from lyrics.
|
inline |
Set the media type of the music item.
Available strings about media type for music:
String | Description |
---|---|
artist | If it is defined as an artist |
album | If it is defined as an album |
music | If it is defined as an music |
song | If it is defined as a song |
|
inline |
Set release date as string from music info (if present).
ISO8601 date YYYY, YYYY-MM or YYYY-MM-DD.
Set related stream samplerate.
|
inline |
Set the title from music as string on info tag.
Set track number (if present) from music info as integer.