The audio setting i have used is
I managed to identify the issue and when i change my settings as
This works charm in iOS 14 and below. Is there any official change document for this from apple ?
This works completely fine with iOS 13 and below but not in iOS 14.NSDictionary* sampleRateDict = @{ AVSampleRateKey: @(44100), AVFormatIDKey: @(kAudioFormatLinearPCM) };
I managed to identify the issue and when i change my settings as
NSDictionary* sampleRateDict = @{ AVSampleRateKey: @(44100), AVFormatIDKey: @(kAudioFormatLinearPCM), AVLinearPCMBitDepthKey: [NSNumber numberWithInt:16], AVLinearPCMIsFloatKey: [NSNumber numberWithBool:NO] };
AVAssetReaderAudioMixOutput* audioOutput = [[AVAssetReaderAudioMixOutput alloc] initWithAudioTracks:audioTracks audioSettings:sampleRateDict];
This works charm in iOS 14 and below. Is there any official change document for this from apple ?