#include <metadata.h>
|
| static void | splitOf (const char *value, int *first, int *second) |
| | Split a string <number>/<number> into its two components. More...
|
| |
| static void | splitOf (const std::string &value, int *first, int *second) |
| |
◆ gainFromiTunesNormalization() [1/2]
| float Media::Metadata::gainFromiTunesNormalization |
( |
const char * |
value | ) |
|
|
static |
Get the iTunes normalization, a/k/a sound check.
- Parameters
-
| value | The value from the iTunNORM ID3 comment. |
- Returns
- The gain specified by iTunNORM.
◆ gainFromiTunesNormalization() [2/2]
| static float Media::Metadata::gainFromiTunesNormalization |
( |
const std::string & |
value | ) |
|
|
inlinestatic |
◆ getFileGain()
| float Media::Metadata::getFileGain |
( |
const std::string & |
filename | ) |
|
|
static |
Get a file's gain for playback.
This is currently done only if:
- taglib is compiled in.
- ffmpeg is the media engine. AVFoundation does this itself; taglib only improves over ffmpeg when there is iTunes normalization and not replay gain in the file's metadata.
◆ getMetadata()
| const Metadata Media::Metadata::getMetadata |
( |
const std::string & |
filename | ) |
|
|
static |
Get metadata using whatever best mechanism is available.
◆ splitOf() [1/2]
| void Media::Metadata::splitOf |
( |
const char * |
value, |
|
|
int * |
first, |
|
|
int * |
second |
|
) |
| |
|
staticprotected |
Split a string <number>/<number> into its two components.
- Parameters
-
| value | The string to split. |
| first | The value before the slash, or the single value. |
| second | The value after a slash, if present. |
◆ splitOf() [2/2]
| static void Media::Metadata::splitOf |
( |
const std::string & |
value, |
|
|
int * |
first, |
|
|
int * |
second |
|
) |
| |
|
inlinestaticprotected |
◆ album
| std::string Media::Metadata::album |
◆ artist
| std::string Media::Metadata::artist |
◆ cddb_id
| std::string Media::Metadata::cddb_id |
◆ disc_count
| int Media::Metadata::disc_count = 0 |
◆ disc_number
| int Media::Metadata::disc_number = 0 |
◆ duration
| float Media::Metadata::duration = 0 |
◆ gain
| float Media::Metadata::gain = 0 |
◆ genre
| std::string Media::Metadata::genre |
◆ title
| std::string Media::Metadata::title |
◆ track_count
| int Media::Metadata::track_count = 0 |
◆ track_number
| int Media::Metadata::track_number = 0 |
◆ year
| int Media::Metadata::year = 0 |
The documentation for this class was generated from the following files: