Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
class AudioEncoderInfoTag

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).
 

Detailed Description

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

Function Documentation

◆ GetAlbum()

const std::string & kodi::addon::AudioEncoderInfoTag::GetAlbum ( ) const
inline

Get album name.

◆ GetAlbumArtist()

const std::string & kodi::addon::AudioEncoderInfoTag::GetAlbumArtist ( ) const
inline

Get album artist name.

◆ GetArtist()

const std::string & kodi::addon::AudioEncoderInfoTag::GetArtist ( ) const
inline

Get artist name.

◆ GetBitsPerSample()

int kodi::addon::AudioEncoderInfoTag::GetBitsPerSample ( ) const
inline

Get related stream bits per sample.

◆ GetChannels()

int kodi::addon::AudioEncoderInfoTag::GetChannels ( ) const
inline

Get related stream channels amount.

◆ GetComment()

const std::string & kodi::addon::AudioEncoderInfoTag::GetComment ( ) const
inline

Get additional information comment (if present).

◆ GetDisc()

int kodi::addon::AudioEncoderInfoTag::GetDisc ( ) const
inline

Get disk number (if present)

◆ GetDiscSubtitle()

const std::string & kodi::addon::AudioEncoderInfoTag::GetDiscSubtitle ( ) const
inline

Get disk subtitle name (if present) from music info.

◆ GetDiscTotal()

int kodi::addon::AudioEncoderInfoTag::GetDiscTotal ( ) const
inline

Get disks amount quantity (if present)

◆ GetDuration()

int kodi::addon::AudioEncoderInfoTag::GetDuration ( ) const
inline

Get the duration of music as integer from info.

◆ GetGenre()

const std::string & kodi::addon::AudioEncoderInfoTag::GetGenre ( ) const
inline

Get genre name from music as string if present.

◆ GetLyrics()

const std::string & kodi::addon::AudioEncoderInfoTag::GetLyrics ( ) const
inline

Get string from lyrics.

◆ GetMediaType()

const std::string & kodi::addon::AudioEncoderInfoTag::GetMediaType ( ) const
inline

Get the media type of the music item.

◆ GetReleaseDate()

const std::string & kodi::addon::AudioEncoderInfoTag::GetReleaseDate ( ) const
inline

Get release date as string from music info (if present).

◆ GetSamplerate()

int kodi::addon::AudioEncoderInfoTag::GetSamplerate ( ) const
inline

Get related stream samplerate.

◆ GetTitle()

const std::string & kodi::addon::AudioEncoderInfoTag::GetTitle ( ) const
inline

Get title name.

◆ GetTrack()

int kodi::addon::AudioEncoderInfoTag::GetTrack ( ) const
inline

Get track number (if present).

◆ GetTrackLength()

int kodi::addon::AudioEncoderInfoTag::GetTrackLength ( ) const
inline

Get related stream track length.

◆ SetAlbum()

void kodi::addon::AudioEncoderInfoTag::SetAlbum ( const std::string & album)
inline

Set album name.

◆ SetAlbumArtist()

void kodi::addon::AudioEncoderInfoTag::SetAlbumArtist ( const std::string & albumArtist)
inline

Set album artist name.

◆ SetArtist()

void kodi::addon::AudioEncoderInfoTag::SetArtist ( const std::string & artist)
inline

Set artist name.

◆ SetBitsPerSample()

void kodi::addon::AudioEncoderInfoTag::SetBitsPerSample ( int bits_per_sample)
inline

Set related stream bits per sample.

◆ SetChannels()

void kodi::addon::AudioEncoderInfoTag::SetChannels ( int channels)
inline

Set related stream channels amount.

◆ SetComment()

void kodi::addon::AudioEncoderInfoTag::SetComment ( const std::string & comment)
inline

Set additional information comment (if present).

◆ SetDisc()

void kodi::addon::AudioEncoderInfoTag::SetDisc ( int disc)
inline

Set disk number (if present) from music info as integer.

◆ SetDiscSubtitle()

void kodi::addon::AudioEncoderInfoTag::SetDiscSubtitle ( const std::string & discSubtitle)
inline

Set disk subtitle name (if present) from music info.

◆ SetDiscTotal()

void kodi::addon::AudioEncoderInfoTag::SetDiscTotal ( int discTotal)
inline

Set disks amount quantity (if present) from music info as integer.

◆ SetDuration()

void kodi::addon::AudioEncoderInfoTag::SetDuration ( int duration)
inline

Set the duration of music as integer from info.

◆ SetGenre()

void kodi::addon::AudioEncoderInfoTag::SetGenre ( const std::string & genre)
inline

Set genre name from music as string if present.

◆ SetLyrics()

void kodi::addon::AudioEncoderInfoTag::SetLyrics ( const std::string & lyrics)
inline

Set string from lyrics.

◆ SetMediaType()

void kodi::addon::AudioEncoderInfoTag::SetMediaType ( const std::string & mediaType)
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

◆ SetReleaseDate()

void kodi::addon::AudioEncoderInfoTag::SetReleaseDate ( const std::string & releaseDate)
inline

Set release date as string from music info (if present).
ISO8601 date YYYY, YYYY-MM or YYYY-MM-DD.

◆ SetSamplerate()

void kodi::addon::AudioEncoderInfoTag::SetSamplerate ( int samplerate)
inline

Set related stream samplerate.

◆ SetTitle()

void kodi::addon::AudioEncoderInfoTag::SetTitle ( const std::string & title)
inline

Set the title from music as string on info tag.

◆ SetTrack()

void kodi::addon::AudioEncoderInfoTag::SetTrack ( int track)
inline

Set track number (if present) from music info as integer.

◆ SetTrackLength()

void kodi::addon::AudioEncoderInfoTag::SetTrackLength ( int track_length)
inline

Set related stream track length.