Fix converter after output switchover

This was missing, too.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2023-10-02 10:14:20 -07:00
parent a2e4fa17b2
commit cfd5b1c6fb
No known key found for this signature in database

View file

@ -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];