diff --git a/plugins/audio_file_processor/audio_file_processor.cpp b/plugins/audio_file_processor/audio_file_processor.cpp index a114514c30..a70fe52a47 100644 --- a/plugins/audio_file_processor/audio_file_processor.cpp +++ b/plugins/audio_file_processor/audio_file_processor.cpp @@ -131,9 +131,9 @@ void audioFileProcessor::playNote( NotePlayHandle * _n, ((handleState *)_n->m_pluginData)->setFrameIndex( m_nextPlayStartPoint ); // debug code - qDebug( "frames %d", m_sampleBuffer.frames() ); +/* qDebug( "frames %d", m_sampleBuffer.frames() ); qDebug( "startframe %d", m_sampleBuffer.startFrame() ); - qDebug( "nextPlayStartPoint %d", m_nextPlayStartPoint ); + qDebug( "nextPlayStartPoint %d", m_nextPlayStartPoint );*/ } if( ! _n->isFinished() ) diff --git a/src/core/SampleBuffer.cpp b/src/core/SampleBuffer.cpp index 148c2fe716..2b656cb7ad 100644 --- a/src/core/SampleBuffer.cpp +++ b/src/core/SampleBuffer.cpp @@ -628,7 +628,7 @@ bool SampleBuffer::play( sampleFrame * _ab, handleState * _state, const f_cnt_t total_frames_for_current_pitch = static_cast( ( m_endFrame - m_startFrame ) / freq_factor ); - qDebug( "total pitched frames %d", total_frames_for_current_pitch ); + if( total_frames_for_current_pitch == 0 ) { return false; @@ -664,7 +664,6 @@ bool SampleBuffer::play( sampleFrame * _ab, handleState * _state, return false; } } - qDebug( "frames for loop %d", frames_for_loop ); sampleFrame * tmp = NULL;