KMP IOS AVAudioPlayer NPE

If you’re trying to play some sound on the IOS device using KMP, and face NPE while trying to instantiate the AVAudioPlayer instance, you may want to do it another way: The code will be as follows:

READ MORE

KMP IOS multiple AVAudioEngines in the same app

It’s possible to have multiple instance of AVAudioEngine in the same app, for example one for mic recording, one for playing a sound. But we can find out that without proper configuration it won’t work. The thing is that we should setup an audio session: Respective method will look like this: Audio play and record […]

READ MORE