Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Anonymous's avatar
Anonymous
4 years ago

Play sound from native C++ API

I'm planning to synthesise sound in realtime in my naive (openXR) app and then play it. So I'll have a bunch of int16 or int24 arrays to play which will be constantly updated and then submitted to the sound API. Android native uses the khronos audio for continously playing audio. Can this also be used in a C++ program in a native application or what is the best approach? Is there C++ sample code available which plays for example a 1kHz sine-wave?

2 Replies