diff --git a/src/core/SamplePlayHandle.cpp b/src/core/SamplePlayHandle.cpp index 5e3a4c37e..c29552d09 100644 --- a/src/core/SamplePlayHandle.cpp +++ b/src/core/SamplePlayHandle.cpp @@ -111,7 +111,8 @@ void SamplePlayHandle::play( sampleFrame * buffer ) // apply offset for the first period if( framesDone() == 0 ) { - buffer += offset(); + memset( buffer, 0, sizeof( sampleFrame ) * offset() ); + workingBuffer += offset(); frames -= offset(); }