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];
|
||||
}
|
||||
if(!chunk) {
|
||||
if(paused) {
|
||||
continue;
|
||||
} else if(!streamFormatChanged) {
|
||||
if([self endOfStream] == YES) {
|
||||
break;
|
||||
}
|
||||
if(paused || !streamFormatChanged) {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
@autoreleasepool {
|
||||
[self writeChunk:chunk];
|
||||
|
|
Loading…
Reference in a new issue