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:
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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() ) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user