aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/song.hpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-01-18 02:57:12 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:45 +0100
commitaf34e8b4807d981cdd75542c48be741059e91828 (patch)
tree0bda2fdcc713af000304fc596f020d3106be02fc /src/base/song.hpp
parentb8396abe778dd064d77d387a1f6aecc819a0fdbf (diff)
downloadusdx-af34e8b4807d981cdd75542c48be741059e91828.tar.gz
usdx-af34e8b4807d981cdd75542c48be741059e91828.tar.xz
usdx-af34e8b4807d981cdd75542c48be741059e91828.zip
added calculations to swap from relative mode to absolute beat times
Diffstat (limited to 'src/base/song.hpp')
-rw-r--r--src/base/song.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/base/song.hpp b/src/base/song.hpp
index af613370..91d22742 100644
--- a/src/base/song.hpp
+++ b/src/base/song.hpp
@@ -83,6 +83,14 @@ namespace usdx
LyricLine* get_last_lyric_line(void);
LyricLine* create_new_lyric_line(int start);
+
+ /**
+ * Used to calculate the absolute beat times in relative song
+ * mode.
+ *
+ * @return Start beat time from last line.
+ */
+ int get_relative_beat(void);
public:
Song(const std::string& filename, const std::map<std::string, std::string>& header);
virtual ~Song(void);