add last backwards-compatible version
This commit is contained in:
@@ -115,21 +115,22 @@ float replaygain_info::anyGain(bool bPreferAlbum) const {
|
||||
}
|
||||
}
|
||||
|
||||
float replaygain_info::g_parse_gain_text(const char * p_text, t_size p_text_len) {
|
||||
void replaygain_info::set_album_gain_text(const char * p_text,t_size p_text_len)
|
||||
{
|
||||
RG_FPU();
|
||||
if (p_text != 0 && p_text_len > 0 && *p_text != 0)
|
||||
return (float)pfc::string_to_float(p_text, p_text_len);
|
||||
m_album_gain = (float)pfc::string_to_float(p_text,p_text_len);
|
||||
else
|
||||
return gain_invalid;
|
||||
}
|
||||
|
||||
void replaygain_info::set_album_gain_text(const char * p_text,t_size p_text_len) {
|
||||
m_album_gain = g_parse_gain_text(p_text, p_text_len);
|
||||
remove_album_gain();
|
||||
}
|
||||
|
||||
void replaygain_info::set_track_gain_text(const char * p_text,t_size p_text_len)
|
||||
{
|
||||
m_track_gain = g_parse_gain_text(p_text, p_text_len);
|
||||
RG_FPU();
|
||||
if (p_text != 0 && p_text_len > 0 && *p_text != 0)
|
||||
m_track_gain = (float)pfc::string_to_float(p_text,p_text_len);
|
||||
else
|
||||
remove_track_gain();
|
||||
}
|
||||
|
||||
void replaygain_info::set_album_peak_text(const char * p_text,t_size p_text_len)
|
||||
|
||||
Reference in New Issue
Block a user