diff --git a/plugins/bit_invader/bit_invader.cpp b/plugins/bit_invader/bit_invader.cpp index 53dfb7a5d..30f855b64 100644 --- a/plugins/bit_invader/bit_invader.cpp +++ b/plugins/bit_invader/bit_invader.cpp @@ -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(); } diff --git a/src/core/main.cpp b/src/core/main.cpp index 7523266d0..7c07d8873 100644 --- a/src/core/main.cpp +++ b/src/core/main.cpp @@ -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 diff --git a/src/core/sample_buffer.cpp b/src/core/sample_buffer.cpp index 618ccdbab..f7783592f 100644 --- a/src/core/sample_buffer.cpp +++ b/src/core/sample_buffer.cpp @@ -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 ); diff --git a/src/core/sample_record_handle.cpp b/src/core/sample_record_handle.cpp index dda240774..5a275966e 100644 --- a/src/core/sample_record_handle.cpp +++ b/src/core/sample_record_handle.cpp @@ -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 ); diff --git a/src/tracks/sample_track.cpp b/src/tracks/sample_track.cpp index d4304ae26..f77ea025e 100644 --- a/src/tracks/sample_track.cpp +++ b/src/tracks/sample_track.cpp @@ -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() ) ); }