Fix converter after output switchover
This was missing, too. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
a2e4fa17b2
commit
cfd5b1c6fb
1 changed files with 4 additions and 3 deletions
|
@ -101,11 +101,12 @@ void scale_by_volume(float *buffer, size_t count, float volume) {
|
||||||
chunk = [self convert];
|
chunk = [self convert];
|
||||||
}
|
}
|
||||||
if(!chunk) {
|
if(!chunk) {
|
||||||
if(paused) {
|
if([self endOfStream] == YES) {
|
||||||
continue;
|
|
||||||
} else if(!streamFormatChanged) {
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if(paused || !streamFormatChanged) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
[self writeChunk:chunk];
|
[self writeChunk:chunk];
|
||||||
|
|
Loading…
Reference in a new issue