AudioKit: how to fix “Failed to fill complex buffer in float converter” in EzAudio swift iOS 13
I am using EZaudio to play mp3 files and it works on iOS 12 and below but on physical Device (iPhone X) running iOS 13 app crashed and console print error
Error : Failed to fill complex buffer in float converter I am using Audiokit and PandoraPlayer framework what may cause this error and how to fix this ?
I’m using this code to configure avaudiosession and it works fine on iOS 12 and below
private func configureAudio() {
do {
try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default)
try AVAudioSession.sharedInstance().setActive(true)
updateCommandCenter()
} catch {
print(error)
}
AKSettings.playbackWhileMuted = true;
AKSettings.enableRouteChangeHandling = true
}
I think EZAudioFloatConverter and microphone may cause this problem but I am not using microphone in my app
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (3 by maintainers)
Commits related to this issue
- Set default output rate to 48KHz to prevent crash in iOS 13 on physical device https://github.com/AudioKit/AudioKit/issues/1809 — committed to long/EZAudio by long 4 years ago
No sorry. I don’t even know if this is working on all devices yet. I guess the developers of Audiokit should check this.