46 if (p_data.get_count() == 0)
return;
58 p_out <<
"REM GENRE " << format_meta(p_data.first()->m_infos,
"genre") <<
g_eol;
61 p_out <<
"REM DATE " << format_meta(p_data.first()->m_infos,
"date") <<
g_eol;
64 p_out <<
"REM DISCID " << format_meta(p_data.first()->m_infos,
"discid") <<
g_eol;
67 p_out <<
"REM COMMENT " << format_meta(p_data.first()->m_infos,
"comment") <<
g_eol;
70 p_out <<
"CATALOG " << format_meta(p_data.first()->m_infos,
"catalog") <<
g_eol;
72 if (songwriter_global) {
73 p_out <<
"SONGWRITER \"" << format_meta(p_data.first()->m_infos,
"songwriter") <<
"\"" <<
g_eol;
76 if (album_artist_global)
78 p_out <<
"PERFORMER \"" << format_meta(p_data.first()->m_infos,
"album artist") <<
"\"" <<
g_eol;
79 artist_global =
false;
81 else if (artist_global)
83 p_out <<
"PERFORMER \"" << format_meta(p_data.first()->m_infos,
"artist") <<
"\"" <<
g_eol;
87 p_out <<
"TITLE \"" << format_meta(p_data.first()->m_infos,
"album") <<
"\"" <<
g_eol;
94 p_out <<
"REM REPLAYGAIN_ALBUM_GAIN " << rgbuffer <<
g_eol;
96 p_out <<
"REM REPLAYGAIN_ALBUM_PEAK " << rgbuffer <<
g_eol;
101 for(t_entry_list::const_iterator iter = p_data.first();iter.is_valid();++iter)
103 if (strcmp(last_file,iter->m_file) != 0)
105 p_out <<
"FILE \"" << iter->m_file <<
"\" WAVE" <<
g_eol;
106 last_file = iter->m_file;
111 if (iter->m_infos.meta_find(
"title") != pfc_infinite)
112 p_out <<
" TITLE \"" << format_meta(iter->m_infos,
"title") <<
"\"" <<
g_eol;
114 if (!artist_global && iter->m_infos.meta_find(
"artist") != pfc_infinite)
115 p_out <<
" PERFORMER \"" << format_meta(iter->m_infos,
"artist") <<
"\"" <<
g_eol;
117 if (!songwriter_global && iter->m_infos.meta_find(
"songwriter") != pfc_infinite) {
118 p_out <<
" SONGWRITER \"" << format_meta(iter->m_infos,
"songwriter") <<
"\"" <<
g_eol;
121 if (iter->m_infos.meta_find(
"isrc") != pfc_infinite) {
122 p_out <<
" ISRC " << format_meta(iter->m_infos,
"isrc") <<
g_eol;
125 if (!date_global && iter->m_infos.meta_find(
"date") != pfc_infinite) {
126 p_out <<
" REM DATE " << format_meta(iter->m_infos,
"date") <<
g_eol;
135 p_out <<
" REM REPLAYGAIN_TRACK_GAIN " << rgbuffer << g_eol;
137 p_out <<
" REM REPLAYGAIN_TRACK_PEAK " << rgbuffer << g_eol;
140 if (!iter->m_flags.is_empty()) {
141 p_out <<
" FLAGS " << iter->m_flags <<
g_eol;
144 if (iter->m_index_list.m_positions[0] < iter->m_index_list.m_positions[1])
146 if (iter->m_index_list.m_positions[0] < 0)
static const char g_eol[]
bool format_track_gain(char p_buffer[text_buffer_size]) const
bool format_album_peak(char p_buffer[text_buffer_size]) const
Structure containing ReplayGain scan results from some playable object, also providing various helper...
bool format_track_peak(char p_buffer[text_buffer_size]) const
bool format_album_gain(char p_buffer[text_buffer_size]) const
static bool is_meta_same_everywhere(const cue_creator::t_entry_list &p_list, const char *p_meta)
char t_text_buffer[text_buffer_size]