diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-04-04 13:41:32 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:47 +0100 |
commit | d8e80ce96801510fde0a256d92dc5fac8adfe22c (patch) | |
tree | e167e1e4dcbccab111327b4748ef5140640852f6 /src/base | |
parent | 1feb5dd5ceb44e2647abc52a13d05f62bf4c903c (diff) | |
download | usdx-d8e80ce96801510fde0a256d92dc5fac8adfe22c.tar.gz usdx-d8e80ce96801510fde0a256d92dc5fac8adfe22c.tar.xz usdx-d8e80ce96801510fde0a256d92dc5fac8adfe22c.zip |
renamed Song::cover to Song::cover_file and added Texture* Song::cover
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/song.cpp | 6 | ||||
-rw-r--r-- | src/base/song.hpp | 7 |
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; |