4 * Copyright (C) 2005-2013 Team XBMC
7 * This Program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
12 * This Program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with XBMC; see the file COPYING. If not, see
19 * <http://www.gnu.org/licenses/>.
23 #include "music/Song.h"
24 #include "filesystem/File.h"
26 #define MAX_PATH_SIZE 1024
38 replayGainTrackGain = 0.0f;
39 replayGainTrackPeak = 0.0f;
47 float replayGainTrackGain;
48 float replayGainTrackPeak;
55 bool Parse(const CStdString &strFile);
56 void GetSongs(VECSONGS &songs);
57 CStdString GetMediaPath();
58 CStdString GetMediaTitle();
59 void GetMediaFiles(std::vector<CStdString>& mediaFiles);
63 // USED for file access
65 char m_szBuffer[1024];
68 CStdString m_strArtist; // album artist
69 CStdString m_strAlbum; // album title
70 CStdString m_strGenre; // album genre
71 int m_iYear; //album year
72 int m_iTrack; // current track
73 int m_iTotalTracks; // total tracks
74 float m_replayGainAlbumGain;
75 float m_replayGainAlbumPeak;
78 std::vector<CCueTrack> m_Track;
80 bool ReadNextLine(CStdString &strLine);
81 bool ExtractQuoteInfo(const CStdString &line, CStdString "e);
82 int ExtractTimeFromIndex(const CStdString &index);
83 int ExtractNumericInfo(const CStdString &info);
84 bool ResolvePath(CStdString &strPath, const CStdString &strBase);