diff --git a/src/core/SampleBuffer.cpp b/src/core/SampleBuffer.cpp index a291ddbc5f3..75558364d00 100644 --- a/src/core/SampleBuffer.cpp +++ b/src/core/SampleBuffer.cpp @@ -752,14 +752,14 @@ sampleFrame * SampleBuffer::getSampleFragment( f_cnt_t _start, { if( _looped ) { - if( _start + _frames <= m_loopEndFrame ) + if( _start + _frames <= m_loopEndFrame || m_loopStartFrame >= m_loopEndFrame ) { return m_data + _start; } } else { - if( _start + _frames <= m_endFrame ) + if( _start + _frames <= m_endFrame || m_startFrame >= m_endFrame ) { return m_data + _start; }