const-correctness for Song::getPlayPos()

This commit is contained in:
Colin Wallace
2015-06-22 00:15:30 +00:00
parent 546cb17e5f
commit 335b1c1c75
2 changed files with 5 additions and 1 deletions

View File

@@ -186,6 +186,10 @@ public:
{
return m_playPos[pm];
}
inline const PlayPos & getPlayPos( PlayModes pm ) const
{
return m_playPos[pm];
}
void updateLength();
tact_t length() const

View File

@@ -163,7 +163,7 @@ void ProjectRenderer::run()
//skip first empty buffer
Engine::mixer()->nextBuffer();
Song::PlayPos & pp = Engine::getSong()->getPlayPos(
const Song::PlayPos & pp = Engine::getSong()->getPlayPos(
Song::Mode_PlaySong );
m_progress = 0;
const int sl = ( Engine::getSong()->length() + 1 ) * 192;