aboutsummaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/base/song.cpp6
-rw-r--r--src/base/song.hpp7
2 files changed, 7 insertions, 6 deletions
diff --git a/src/base/song.cpp b/src/base/song.cpp
index 959102c2..9b0cbf12 100644
--- a/src/base/song.cpp
+++ b/src/base/song.cpp
@@ -51,7 +51,7 @@ namespace usdx
bpm.push_back(new BPM(get_header_tag_float(L"BPM", true)));
gap = get_header_tag_float(L"GAP");
- cover = get_header_tag(L"COVER");
+ cover_file = get_header_tag(L"COVER");
background = get_header_tag(L"BACKGROUND");
video = get_header_tag(L"VIDEO");
@@ -226,9 +226,9 @@ namespace usdx
return gap;
}
- const std::wstring& Song::get_cover(void) const
+ const std::wstring& Song::get_cover_file(void) const
{
- return cover;
+ return cover_file;
}
const std::wstring& Song::get_background(void) const
diff --git a/src/base/song.hpp b/src/base/song.hpp
index 2217e244..d0c06c9a 100644
--- a/src/base/song.hpp
+++ b/src/base/song.hpp
@@ -34,6 +34,7 @@
#include <log4cxx/logger.h>
#include "bpm.hpp"
#include "lyric_line.hpp"
+#include "texture.hpp"
#include "utils/base_exception.hpp"
namespace usdx
@@ -74,8 +75,8 @@ namespace usdx
std::wstring video;
float video_gap;
- std::wstring cover;
- // texture cover_tex;
+ std::wstring cover_file;
+ Texture* cover;
std::wstring genre;
std::wstring edition;
@@ -127,7 +128,7 @@ namespace usdx
const std::wstring& get_mp3(void) const;
const float get_bpm(int beat) const;
const float get_gap(void) const;
- const std::wstring& get_cover(void) const;
+ const std::wstring& get_cover_file(void) const;
const std::wstring& get_background(void) const;
const std::wstring& get_video(void) const;
const float get_video_gap(void) const;