From 8c0b22eca8bf3baef1cfb960fc38dc2eb159e07c Mon Sep 17 00:00:00 2001 From: Vesa Date: Fri, 28 Mar 2014 02:28:51 +0200 Subject: [PATCH] Forgot to clean some debug code... --- plugins/audio_file_processor/audio_file_processor.cpp | 4 ++-- src/core/SampleBuffer.cpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/audio_file_processor/audio_file_processor.cpp b/plugins/audio_file_processor/audio_file_processor.cpp index a114514c3..a70fe52a4 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 148c2fe71..2b656cb7a 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;