const-correctness for Song::getPlayPos()
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user