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 MOREsimply about difficult
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 MOREThis code is for converting audio in ByteArray in PCM int 16 bit mono format to audio in ABAudioPCMBuffer in PCM float 32 bit stereo format:
READ MOREHere we have the method that converts audio in AVAudioPCMBuffer in PCM float 32 bit mono format to audio in ByteArray in PCM int 16 bit mono format:
READ MOREIt’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