Small const fix
This commit is contained in:
@@ -263,7 +263,7 @@ public slots:
|
||||
void playAndRecord();
|
||||
void playTrack( Track * _trackToPlay );
|
||||
void playBB();
|
||||
void playPattern( Pattern* patternToPlay, bool _loop = true );
|
||||
void playPattern(const Pattern* patternToPlay, bool _loop = true );
|
||||
void togglePause();
|
||||
void stop();
|
||||
|
||||
@@ -354,7 +354,7 @@ private:
|
||||
tact_t m_length;
|
||||
|
||||
Track * m_trackToPlay;
|
||||
Pattern* m_patternToPlay;
|
||||
const Pattern* m_patternToPlay;
|
||||
bool m_loopPattern;
|
||||
|
||||
double m_elapsedMilliSeconds;
|
||||
|
||||
@@ -468,7 +468,7 @@ public:
|
||||
|
||||
int numOfTCOs();
|
||||
TrackContentObject * getTCO( int _tco_num );
|
||||
int getTCONum( TrackContentObject * _tco );
|
||||
int getTCONum(const TrackContentObject* _tco );
|
||||
|
||||
const tcoVector & getTCOs() const
|
||||
{
|
||||
|
||||
@@ -473,7 +473,7 @@ void Song::playBB()
|
||||
|
||||
|
||||
|
||||
void Song::playPattern( Pattern* patternToPlay, bool _loop )
|
||||
void Song::playPattern( const Pattern* patternToPlay, bool _loop )
|
||||
{
|
||||
if( isStopped() == false )
|
||||
{
|
||||
|
||||
@@ -2139,7 +2139,7 @@ TrackContentObject * Track::getTCO( int _tco_num )
|
||||
* \param _tco The TrackContentObject to search for.
|
||||
* \return its number in our array.
|
||||
*/
|
||||
int Track::getTCONum( TrackContentObject * _tco )
|
||||
int Track::getTCONum( const TrackContentObject * _tco )
|
||||
{
|
||||
// for( int i = 0; i < getTrackContentWidget()->numOfTCOs(); ++i )
|
||||
tcoVector::iterator it = qFind( m_trackContentObjects.begin(),
|
||||
|
||||
@@ -1934,7 +1934,7 @@ void AutomationEditor::play()
|
||||
if( Engine::getSong()->playMode() != Song::Mode_PlayPattern )
|
||||
{
|
||||
Engine::getSong()->stop();
|
||||
Engine::getSong()->playPattern( (Pattern *) Engine::pianoRoll()->currentPattern() );
|
||||
Engine::getSong()->playPattern( Engine::pianoRoll()->currentPattern() );
|
||||
}
|
||||
else if( Engine::getSong()->isStopped() == false )
|
||||
{
|
||||
@@ -1942,7 +1942,7 @@ void AutomationEditor::play()
|
||||
}
|
||||
else
|
||||
{
|
||||
Engine::getSong()->playPattern( (Pattern *) Engine::pianoRoll()->currentPattern() );
|
||||
Engine::getSong()->playPattern( Engine::pianoRoll()->currentPattern() );
|
||||
}
|
||||
}
|
||||
else if( inBBEditor() )
|
||||
|
||||
Reference in New Issue
Block a user