SamplePlayHandle: clear unused frames from buffer

This commit is contained in:
Hannu Haahti
2014-07-15 11:28:53 +03:00
parent 37a90cabcf
commit 5fef919c4a

View File

@@ -111,6 +111,7 @@ void SamplePlayHandle::play( sampleFrame * buffer )
// apply offset for the first period
if( framesDone() == 0 )
{
memset( buffer, 0, sizeof( sampleFrame ) * offset() );
workingBuffer += offset();
frames -= offset();
}