Fixed HighlyComplete to properly seek when there are samples buffered

CQTexperiment
Chris Moeller 2013-11-05 16:04:34 -08:00
parent 625ced97f3
commit c524bd406e
1 changed files with 2 additions and 2 deletions

View File

@ -1373,13 +1373,13 @@ static int twosf_info(void * context, const char * name, const char * value)
{
frame -= framesRead;
silence_test_buffer.read( NULL, frame * 2 );
framesRead += frame * 2;
framesRead += frame;
return framesRead;
}
else if ( buffered_samples )
{
silence_test_buffer.read( NULL, buffered_samples * 2 );
framesRead += buffered_samples * 2;
framesRead += buffered_samples;
}
if ( type == 1 || type == 2 )