Fix for short audio files.
parent
0be36644a6
commit
4e1f598ac4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue