How to play sound on iOS in C++ (equivalent of OpenSL ES used in Android NDK)?

548 Views Asked by At

In my iOS app, I want to be able to play a stereo sin wave, in C++.

The purpose of it is to be able to replicate on iOS what I did on Android using the Android NDK, where I play music using OpenSL ES. I also need to use C++, not only because all my code for my audio player on Android is made in C++, but also for performance sake.

I found out that there are many functionalities in CoreAudio, but I don't know where to start, since I'm not an expert on iOS.

So is there any equivalent of OpenSL ES on iOS, so I can play a sound wave in C++?

Thanks.

0

There are 0 best solutions below