Fix for short audio files.

CQTexperiment
vspader 2007-05-16 23:07:00 +00:00
parent 0be36644a6
commit 4e1f598ac4
1 changed files with 5 additions and 1 deletions

View File

@ -107,7 +107,11 @@
if ([converter outputBufferSize] <= 0) if ([converter outputBufferSize] <= 0)
{ {
NSLog(@"END OF FILE?!"); if (initialBufferFilled == NO) {
[controller initialBufferFilled];
}
NSLog(@"END OF FILE?! %i %i", amountRead, amountConverted);
endOfStream = YES; endOfStream = YES;
[controller endOfInputReached]; [controller endOfInputReached];
break; //eof break; //eof