renamed muted() to isMuted() and other coding-style fixes
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1067 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -126,8 +126,8 @@ void samplePlayHandle::play( bool /* _try_parallelizing */,
|
||||
}
|
||||
|
||||
const fpp_t frames = engine::getMixer()->framesPerPeriod();
|
||||
if( !( m_track && m_track->muted() )
|
||||
&& !( m_bbTrack && m_bbTrack->muted() ) )
|
||||
if( !( m_track && m_track->isMuted() )
|
||||
&& !( m_bbTrack && m_bbTrack->isMuted() ) )
|
||||
{
|
||||
stereoVolumeVector v = { { m_volumeModel->value(),
|
||||
m_volumeModel->value() } };
|
||||
|
||||
@@ -89,7 +89,7 @@ void bbTCO::saveSettings( QDomDocument & _doc, QDomElement & _this )
|
||||
_this.setAttribute( "pos", startPosition() );
|
||||
}
|
||||
_this.setAttribute( "len", length() );
|
||||
_this.setAttribute( "muted", muted() );
|
||||
_this.setAttribute( "muted", isMuted() );
|
||||
_this.setAttribute( "color", m_color );
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ void bbTCO::loadSettings( const QDomElement & _this )
|
||||
movePosition( _this.attribute( "pos" ).toInt() );
|
||||
}
|
||||
changeLength( _this.attribute( "len" ).toInt() );
|
||||
if( _this.attribute( "muted" ).toInt() != muted() )
|
||||
if( _this.attribute( "muted" ).toInt() != isMuted() )
|
||||
{
|
||||
toggleMute();
|
||||
}
|
||||
@@ -180,7 +180,7 @@ void bbTCOView::mouseDoubleClickEvent( QMouseEvent * )
|
||||
void bbTCOView::paintEvent( QPaintEvent * )
|
||||
{
|
||||
QColor col( m_bbTCO->m_color );
|
||||
if( m_bbTCO->getTrack()->muted() || m_bbTCO->muted() )
|
||||
if( m_bbTCO->getTrack()->isMuted() || m_bbTCO->isMuted() )
|
||||
{
|
||||
col = QColor( 160, 160, 160 );
|
||||
}
|
||||
@@ -218,7 +218,7 @@ void bbTCOView::paintEvent( QPaintEvent * )
|
||||
p.setPen( QColor( 0, 0, 0 ) );
|
||||
p.drawText( 2, p.fontMetrics().height() - 1, m_bbTCO->m_name );
|
||||
|
||||
if( m_bbTCO->muted() )
|
||||
if( m_bbTCO->isMuted() )
|
||||
{
|
||||
p.drawPixmap( 3, p.fontMetrics().height() + 1,
|
||||
embed::getIconPixmap( "muted", 16, 16 ) );
|
||||
@@ -374,7 +374,7 @@ bool bbTrack::play( const midiTime & _start, const fpp_t _frames,
|
||||
for( QList<trackContentObject *>::iterator it = tcos.begin();
|
||||
it != tcos.end(); ++it )
|
||||
{
|
||||
if( !( *it )->muted() &&
|
||||
if( !( *it )->isMuted() &&
|
||||
( *it )->startPosition() >= lastPosition )
|
||||
{
|
||||
lastPosition = ( *it )->startPosition();
|
||||
|
||||
@@ -175,7 +175,7 @@ void instrumentTrack::processAudioBuffer( sampleFrame * _buf,
|
||||
notePlayHandle * _n )
|
||||
{
|
||||
// we must not play the sound if this instrumentTrack is muted...
|
||||
if( muted() || ( _n && _n->bbTrackMuted() ) )
|
||||
if( isMuted() || ( _n && _n->bbTrackMuted() ) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -548,7 +548,7 @@ bool FASTCALL instrumentTrack::play( const midiTime & _start,
|
||||
{
|
||||
pattern * p = dynamic_cast<pattern *>( *it );
|
||||
// everything which is not a pattern or muted won't be played
|
||||
if( p == NULL || ( *it )->muted() )
|
||||
if( p == NULL || ( *it )->isMuted() )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -338,7 +338,7 @@ void pattern::saveSettings( QDomDocument & _doc, QDomElement & _this )
|
||||
_this.setAttribute( "pos", startPosition() );
|
||||
}
|
||||
_this.setAttribute( "len", length() );
|
||||
_this.setAttribute( "muted", muted() );
|
||||
_this.setAttribute( "muted", isMuted() );
|
||||
_this.setAttribute( "steps", m_steps );
|
||||
_this.setAttribute( "frozen", m_frozenPattern != NULL );
|
||||
|
||||
@@ -368,7 +368,7 @@ void pattern::loadSettings( const QDomElement & _this )
|
||||
movePosition( _this.attribute( "pos" ).toInt() );
|
||||
}
|
||||
changeLength( midiTime( _this.attribute( "len" ).toInt() ) );
|
||||
if( _this.attribute( "muted" ).toInt() != muted() )
|
||||
if( _this.attribute( "muted" ).toInt() != isMuted() )
|
||||
{
|
||||
toggleMute();
|
||||
}
|
||||
@@ -932,7 +932,7 @@ void patternView::constructContextMenu( QMenu * _cm )
|
||||
_cm->addSeparator();
|
||||
|
||||
bool freeze_separator = FALSE;
|
||||
if( !( m_pat->m_instrumentTrack->muted() || m_pat->muted() ) )
|
||||
if( !( m_pat->m_instrumentTrack->isMuted() || m_pat->isMuted() ) )
|
||||
{
|
||||
_cm->addAction( embed::getIconPixmap( "freeze" ),
|
||||
m_pat->m_frozenPattern ? tr( "Refreeze" ) :
|
||||
@@ -1195,8 +1195,8 @@ void patternView::paintEvent( QPaintEvent * )
|
||||
height() - 2 *
|
||||
TCO_BORDER_WIDTH );
|
||||
}*/
|
||||
if( m_pat->getTrack()->muted() ||
|
||||
m_pat->muted() )
|
||||
if( m_pat->getTrack()->isMuted() ||
|
||||
m_pat->isMuted() )
|
||||
{
|
||||
p.setPen( QColor( 160, 160, 160 ) );
|
||||
}
|
||||
@@ -1294,7 +1294,7 @@ void patternView::paintEvent( QPaintEvent * )
|
||||
}
|
||||
|
||||
p.setFont( pointSize<7>( p.font() ) );
|
||||
if( m_pat->muted() || m_pat->getTrack()->muted() )
|
||||
if( m_pat->isMuted() || m_pat->getTrack()->isMuted() )
|
||||
{
|
||||
p.setPen( QColor( 192, 192, 192 ) );
|
||||
}
|
||||
@@ -1308,7 +1308,7 @@ void patternView::paintEvent( QPaintEvent * )
|
||||
p.drawText( 2, p.fontMetrics().height() - 1, m_pat->name() );
|
||||
}
|
||||
|
||||
if( m_pat->muted() )
|
||||
if( m_pat->isMuted() )
|
||||
{
|
||||
p.drawPixmap( 3, p.fontMetrics().height() + 1,
|
||||
embed::getIconPixmap( "muted", 16, 16 ) );
|
||||
|
||||
Reference in New Issue
Block a user