Seems like you're setting key to AVChannelLayoutKey
and value to type of AVAudioQuality
. They're no corresponding to each other. AVChannelLayoutKey
's value should contant struct of AudioChannelLayout.
Comment both last key and last values. Or fill and pass AudioChannelLayout
structure.