foobar2000 SDK
2015-08-03
|
#include <file_info.h>
Public Types | |
enum | { text_buffer_size = 16 } |
enum | { peak_invalid = -1, gain_invalid = -1000 } |
typedef char | t_text_buffer[text_buffer_size] |
Public Member Functions | |
bool | format_album_gain (char p_buffer[text_buffer_size]) const |
bool | format_album_peak (char p_buffer[text_buffer_size]) const |
bool | format_track_gain (char p_buffer[text_buffer_size]) const |
bool | format_track_peak (char p_buffer[text_buffer_size]) const |
t_size | get_value_count () |
bool | is_album_gain_present () const |
bool | is_album_peak_present () const |
bool | is_track_gain_present () const |
bool | is_track_peak_present () const |
void | remove_album_gain () |
void | remove_album_peak () |
void | remove_track_gain () |
void | remove_track_peak () |
void | reset () |
void | set_album_gain_text (const char *p_text, t_size p_text_len=pfc_infinite) |
void | set_album_peak_text (const char *p_text, t_size p_text_len=pfc_infinite) |
bool | set_from_meta (const char *p_name, const char *p_value) |
bool | set_from_meta_ex (const char *p_name, t_size p_name_len, const char *p_value, t_size p_value_len) |
void | set_track_gain_text (const char *p_text, t_size p_text_len=pfc_infinite) |
void | set_track_peak_text (const char *p_text, t_size p_text_len=pfc_infinite) |
Static Public Member Functions | |
static bool | g_equal (const replaygain_info &item1, const replaygain_info &item2) |
static bool | g_format_gain (float p_value, char p_buffer[text_buffer_size]) |
static bool | g_format_peak (float p_value, char p_buffer[text_buffer_size]) |
static bool | g_is_meta_replaygain (const char *p_name, t_size p_name_len=pfc_infinite) |
static replaygain_info | g_merge (replaygain_info r1, replaygain_info r2) |
Data Fields | |
float | m_album_gain |
float | m_album_peak |
float | m_track_gain |
float | m_track_peak |
Structure containing ReplayGain scan results from some playable object, also providing various helper methods to manipulate those results.
Definition at line 2 of file file_info.h.
typedef char replaygain_info::t_text_buffer[text_buffer_size] |
Definition at line 8 of file file_info.h.
anonymous enum |
anonymous enum |
Enumerator | |
---|---|
peak_invalid | |
gain_invalid |
Definition at line 10 of file file_info.h.
|
inline |
Definition at line 15 of file file_info.h.
|
inline |
Definition at line 17 of file file_info.h.
|
inline |
Definition at line 16 of file file_info.h.
|
inline |
Definition at line 18 of file file_info.h.
|
static |
Definition at line 355 of file file_info.cpp.
|
static |
Definition at line 9 of file replaygain_info.cpp.
|
static |
Definition at line 25 of file replaygain_info.cpp.
|
static |
Definition at line 50 of file replaygain_info.cpp.
|
static |
Definition at line 134 of file replaygain_info.cpp.
t_size replaygain_info::get_value_count | ( | ) |
Definition at line 88 of file replaygain_info.cpp.
|
inline |
Definition at line 29 of file file_info.h.
|
inline |
Definition at line 31 of file file_info.h.
|
inline |
Definition at line 30 of file file_info.h.
|
inline |
Definition at line 32 of file file_info.h.
|
inline |
Definition at line 34 of file file_info.h.
|
inline |
Definition at line 36 of file file_info.h.
|
inline |
Definition at line 35 of file file_info.h.
|
inline |
Definition at line 37 of file file_info.h.
void replaygain_info::reset | ( | ) |
Definition at line 40 of file replaygain_info.cpp.
void replaygain_info::set_album_gain_text | ( | const char * | p_text, |
t_size | p_text_len = pfc_infinite |
||
) |
Definition at line 98 of file replaygain_info.cpp.
void replaygain_info::set_album_peak_text | ( | const char * | p_text, |
t_size | p_text_len = pfc_infinite |
||
) |
Definition at line 116 of file replaygain_info.cpp.
|
inline |
Definition at line 27 of file file_info.h.
bool replaygain_info::set_from_meta_ex | ( | const char * | p_name, |
t_size | p_name_len, | ||
const char * | p_value, | ||
t_size | p_value_len | ||
) |
Definition at line 59 of file replaygain_info.cpp.
void replaygain_info::set_track_gain_text | ( | const char * | p_text, |
t_size | p_text_len = pfc_infinite |
||
) |
Definition at line 107 of file replaygain_info.cpp.
void replaygain_info::set_track_peak_text | ( | const char * | p_text, |
t_size | p_text_len = pfc_infinite |
||
) |
Definition at line 125 of file replaygain_info.cpp.
float replaygain_info::m_album_gain |
Definition at line 4 of file file_info.h.
float replaygain_info::m_album_peak |
Definition at line 5 of file file_info.h.
float replaygain_info::m_track_gain |
Definition at line 4 of file file_info.h.
float replaygain_info::m_track_peak |
Definition at line 5 of file file_info.h.