Info tag data structure
Representation of available information of processed audio file.
This is used to store all the necessary data of audio stream and to have on e.g. GUI for information.
The following table contains values that can be set with class AudioDecoderInfoTag :
◆ SetTitle()
void SetTitle |
( |
const std::string & |
title | ) |
|
|
inline |
Set the title from music as string on info tag.
◆ GetTitle()
std::string GetTitle |
( |
| ) |
const |
|
inline |
◆ SetArtist()
void SetArtist |
( |
const std::string & |
artist | ) |
|
|
inline |
◆ GetArtist()
std::string GetArtist |
( |
| ) |
const |
|
inline |
◆ SetAlbum()
void SetAlbum |
( |
const std::string & |
album | ) |
|
|
inline |
◆ GetAlbum()
std::string GetAlbum |
( |
| ) |
const |
|
inline |
◆ SetAlbumArtist()
void SetAlbumArtist |
( |
const std::string & |
albumArtist | ) |
|
|
inline |
◆ GetAlbumArtist()
std::string GetAlbumArtist |
( |
| ) |
const |
|
inline |
◆ SetMediaType()
void 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 |
◆ GetMediaType()
std::string GetMediaType |
( |
| ) |
const |
|
inline |
Get the media type of the music item.
◆ SetGenre()
void SetGenre |
( |
const std::string & |
genre | ) |
|
|
inline |
Set genre name from music as string if present.
◆ GetGenre()
std::string GetGenre |
( |
| ) |
const |
|
inline |
Get genre name from music as string if present.
◆ SetDuration()
void SetDuration |
( |
int |
duration | ) |
|
|
inline |
Set the duration of music as integer from info.
◆ GetDuration()
int GetDuration |
( |
| ) |
const |
|
inline |
Get the duration of music as integer from info.
◆ SetTrack()
void SetTrack |
( |
int |
track | ) |
|
|
inline |
Set track number (if present) from music info as integer.
◆ GetTrack()
Get track number (if present).
◆ SetDisc()
Set disk number (if present) from music info as integer.
◆ GetDisc()
Get disk number (if present)
◆ SetDiscSubtitle()
void SetDiscSubtitle |
( |
const std::string & |
discSubtitle | ) |
|
|
inline |
Set disk subtitle name (if present) from music info.
◆ GetDiscSubtitle()
std::string GetDiscSubtitle |
( |
| ) |
const |
|
inline |
Get disk subtitle name (if present) from music info.
◆ SetDiscTotal()
void SetDiscTotal |
( |
int |
discTotal | ) |
|
|
inline |
Set disks amount quantity (if present) from music info as integer.
◆ GetDiscTotal()
int GetDiscTotal |
( |
| ) |
const |
|
inline |
Get disks amount quantity (if present)
◆ SetReleaseDate()
void 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.
◆ GetReleaseDate()
std::string GetReleaseDate |
( |
| ) |
const |
|
inline |
Get release date as string from music info (if present).
◆ SetLyrics()
void SetLyrics |
( |
const std::string & |
lyrics | ) |
|
|
inline |
◆ GetLyrics()
std::string GetLyrics |
( |
| ) |
const |
|
inline |
◆ SetSamplerate()
void SetSamplerate |
( |
int |
samplerate | ) |
|
|
inline |
Set related stream samplerate.
◆ GetSamplerate()
int GetSamplerate |
( |
| ) |
const |
|
inline |
Get related stream samplerate.
◆ SetChannels()
void SetChannels |
( |
int |
channels | ) |
|
|
inline |
Set related stream channels amount.
◆ GetChannels()
int GetChannels |
( |
| ) |
const |
|
inline |
Get related stream channels amount.
◆ SetBitrate()
void SetBitrate |
( |
int |
bitrate | ) |
|
|
inline |
Set related stream bitrate.
◆ GetBitrate()
Get related stream bitrate.
◆ SetComment()
void SetComment |
( |
const std::string & |
comment | ) |
|
|
inline |
Set additional information comment (if present).
◆ GetComment()
std::string GetComment |
( |
| ) |
const |
|
inline |
Get additional information comment (if present).