From c3ffa116c0a758eb204d7f181dc2ebec075afc33 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Mon, 21 Oct 2013 05:33:48 -0700 Subject: [PATCH] Fixed a serious bug with silence buffer filling --- Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm b/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm index d9a52871a..8c6aba4ff 100644 --- a/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm +++ b/Plugins/HighlyComplete/HighlyComplete/HCDecoder.mm @@ -1179,7 +1179,7 @@ static int twosf_info(void * context, const char * name, const char * value) int samples_read = [self readAudioInternal:buf frames:(UInt32)samples_to_write / 2] * 2; if ( !samples_read ) break; silence_test_buffer.samples_written( samples_read ); - free_space -= samples_read; + free_space -= samples_read / 2; } return !silence_test_buffer.test_silence(); }