fixed compiler warnings

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1704 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-09-24 09:08:15 +00:00
parent f747e7af9c
commit b83b56fdf5
5 changed files with 6 additions and 6 deletions

View File

@@ -221,7 +221,7 @@ void bitInvader::loadSettings( const QDomElement & _this )
void bitInvader::lengthChanged( void )
{
m_graph.setLength( m_sampleLength.value() );
m_graph.setLength( (int) m_sampleLength.value() );
normalize();
}

View File

@@ -373,7 +373,7 @@ int main( int argc, char * * argv )
ss->setAttribute( Qt::WA_PaintOnScreen, true );
ss->setMask( splash.alphaChannel().createMaskFromColor(
QColor( 0, 0, 0 ) ) );
ss->show();
//ss->show();
qApp->processEvents();
// init central engine which handles all components of LMMS

View File

@@ -710,8 +710,8 @@ void sampleBuffer::visualize( QPainter & _p, const QRect & _dr,
for( int frame = 0; frame < m_frames; frame += fpp )
{
l[n] = QPoint( xb + ( frame * w / m_frames ),
yb - ( ( m_data[frame][0]+m_data[frame][1] ) *
y_space ) );
(int)( yb - ( ( m_data[frame][0]+m_data[frame][1] ) *
y_space ) ) );
++n;
}
_p.drawPolyline( l, m_frames / fpp );

View File

@@ -76,7 +76,7 @@ void sampleRecordHandle::play( bool /* _try_parallelizing */,
writeBuffer( recbuf, frames );
m_framesRecorded += frames;
midiTime len = m_framesRecorded / engine::framesPerTick();
midiTime len = (tics)( m_framesRecorded / engine::framesPerTick() );
if( len > m_minLength )
{
// m_tco->changeLength( len );

View File

@@ -133,7 +133,7 @@ void sampleTCO::updateLength( bpm_t )
midiTime sampleTCO::sampleLength( void ) const
{
return( m_sampleBuffer->frames() / engine::framesPerTick() );
return( (int)( m_sampleBuffer->frames() / engine::framesPerTick() ) );
}