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 adc4128c28
commit f4f46942ec
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]; 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];